I'd like to put a Timeout in a VBScript. Can someone help me. I don't know how to do. If the execution time is longer than the timeout, the program must continue and make a special execution.
If the timeout you need is to just kill the script after it runs for so many seconds then at a Command Prompt type wscript and it will bring up an option to stop a script after a specified number of seconds. If you want it for each script use the Private|Public Sub obj_Timeout(). The timeout event occurs when script execution exceeds the time allotted in the Timeout property, and the user decides to stop the exection of the script. When several ScriptControl objects are present, a Timeout event will occur only for the first ScriptControl object to time out. "obj" is always the ScriptControl object. Hope this helps.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.