@echo off rem *** CLEAR.CMD: Purges future tasks on targetted computer(s) *** rem rem SYNTAX: CLEAR [target [jobID]] rem rem PARAMETERS: rem rem target rem computer, lab, or group of labs to clear. If omitted, rem current computer is assumed. rem rem jobID rem number of specific task to clear. If omitted, all rem jobs are cleared from target. rem rem Requires massproc.cmd, autodist.cmd, timeout.exe. setlocal enableextensions set target=%1 set jobID=%2 set conftext=purge future tasks on :main call massproc.cmd if defined exit goto end at %unc% %jobID% /d /y at %unc% goto main :end timeout 10 endlocal