@echo off if x%1x == xx set CCNAME=xyz if exist WinEdt_%CCNAME%CC.zip del WinEdt_%CCNAME%CC.zip if not exist %CCNAME%\nul goto nodir if not exist zip.exe goto nozip cd %CCNAME% ..\zip -r ..\WinEdt_%CCNAME%CC *.* cd .. goto end :nozip echo There is no zip.exe! goto end :nodir echo Ther is no directory %CCNAME%! goto end :end