@echo off rem rem *** Check username variable to see if someone's logged on. rem If not, start the PC-Rdist process. rem If so, check again twenty minutes later. *** rem rem *** Components: rem UserOn.bat (useron.cmd) from JSI Inc. rem http://www.jsiinc.com/subd/tip1700/rh1752.htm rem (slightly modified by Nicholas Dahlman) rem dtreg.exe from David G. Thomas: rem http://www.tamedos.com/downloads/index.htm rem tlist.exe from Windows 2000 Support Tools: rem in the Windows 2000 CD Support directory *** rem call useron.cmd IF "%uon%"=="Y" ( soon 1200 c:\progra~1\pc-rdist\autodist.cmd > nul ) ELSE ( c:\progra~1\pc-rdist\downdist.cmd )