I need to run a batch file every 20mins on strip down WindowsNT machine that doesnt have Task Scheduler on it. Is there a way to do it?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Const sleepTime = 20 * 60 * 60000 Set shell = CreateObject("Wscript.Shell") Do While True WScript.Sleep sleepTime WshShell.Popup "PLEASE CHECK ALL GET ARE INTACT. IF MISSING REPORT IMMEDIATLY. THIS MESSAGE WILL SELF DISTRUCT IN 10s'." ,10 ,"CHECK GET Click OK!", 0 LoopNote: I’m not sure which version of the VBScript engine your WinNT box has. For a while, the engines were released with Internet Explorer. It wasn’t until Win2K that VBScripts were guaranteed to actually run, and WScript.Sleep wasn’t included until version 2.0.
How To Ask Questions The Smart Way