REM DOIT.BAT REM REM Note: the .pl scripts are expected to delete their command file D: cd \WORK\QUEUE :LOOP sleep 60 if exists PAUSE_JOB goto LOOP for %%J in (NME\*) do NME_Rpt.pl %%J for %%J in (PURGE\*) do Purge_Old_Files.pl %%J goto LOOP