@echo off copy e:\pcb\work\failure pcbfail.txt del e:\pcb\work\failure echo y|del e:\pcb\tmp\*.* if %2 == UPLOAD GOTO END testfile %1 zip if errorlevel == 98 goto end if errorlevel == 1 goto zip goto end :zip echo รพ Testing ZIP file integrity pkunzip -t %1 > pcbfail.txt if errorlevel == 1 goto end del pcbfail.txt goto end :end