| You are trying to use functions not available in the standard version of the VBScript. Actually you are trying to call private functions of the Windows
 Scripting Host object. These functions are used to control run-time of
 WScript.exe and they have nothing to do directly with the VBScript
 environment.
 Please see the online VBScript Manual for complete list of available methods and functions.
 Please keep in mind that VBScript jobs within 24x7 are executed by the built- in VBScript engine and not by the wscript.exe.
 If you need to implement Sleep method in your VBScript job you can use the following code
 Sub sleeper()  JALScript.Execute("Wait 2") End Sub
 Another solution is to create an external .VBS file and run it as command line job.  By the way, manipulating services in JAL no more complicated than in VBScript plus you have an extra option to write progress messages to the common job log file.  : You were right. I was calling WshShell.sleeep which : doesn't exist.
 : What kind of sleep method can I call? How do I : reference WScript which has a method sleep() ?
 
 
 |