Hi,
I am trying to get a batch script to check whether a folder contains any files in it. So far this is how far I have got:
IF EXIST %FILEPATH%\%%i\FromGlobus\%FILE% (
%WINZIP% %FILEPATH%\GlobusEOD\ExtraFiles\%ZIPFILE% -m %FILE%
IF errorlevel 1 goto subBADEND
)
where %FILE%
is *.*
but what happens is it tries to zip up files even when none exist and therefore fails!
Any tips or ideas?
Thank you