@echo off rem *** SUPERDAT.CMD: Checks jobs waiting on computer(s) *** rem rem SYNTAX: SUPERDAT target DATname [folderloc] rem rem PARAMETERS: rem rem target rem computer, lab, or group of labs to check. rem rem DATname rem filename of SuperDAT (e.g. EXTRA.EXE). Must be in folder location rem specified by folderloc variable. rem rem folderloc rem folder in which the SuperDAT is located. If omitted, assumed to rem be \\software\winsoft. rem rem Requires massproc.cmd, DATdist.cmd, timeout.exe. setlocal enableextensions set target=%1 set DATname=%2 if not defined DATname goto noDAT set folderloc=%3 if not defined folderloc set folderloc=\\software\winsoft if not exist %folderloc%\%DATname% goto noDAT set conftext=update virus definitions on :main call massproc.cmd if defined exit goto end soon %unc% 120 DATdist.cmd %folderloc% %DATname% > nul at %unc% goto main :noDAT echo Error: SuperDAT file not found. echo Please copy SuperDAT file to %folderloc% and include the filename in the command. goto end :end timeout 10 endlocal