@echo off testfile %1 gif zip if errorlevel == 98 goto end if errorlevel == 2 goto zip if errorlevel == 1 goto gif goto end :zip zltest %1 c:\pcb\util\zltest.cfg LOCAL goto zdcs :gif giftest %1 /R:2 /T:1 goto zdcs :zdcs c:\pcb\util\zdcs\zdcsfc %1 %2 if not exist zdcs-del.lst goto end pkzip -d %1 @zdcs-del.lst goto end :end