M30_NXG
03-03-2020, 13:57
Hi there,
Is there any idea, how to realize an TIMEOUT function
like demonstrated by the short VBS code below?
Purpose: detect eventually "hang up" or "endless" code execution.
VBS Code:
----------
WScript.Timeout = 2
WScript.Echo "Starting Script"
WScript.Sleep 5000
WScript.Echo "Ending Script"
Output:
-------
Starting Script
Script execution time was exceeded on script "C:\test.vbs".
Script execution was terminated.
See here:
https://www.devguru.com/content/technologies/wsh/wscript-timeout.html
Tx
Ben
Is there any idea, how to realize an TIMEOUT function
like demonstrated by the short VBS code below?
Purpose: detect eventually "hang up" or "endless" code execution.
VBS Code:
----------
WScript.Timeout = 2
WScript.Echo "Starting Script"
WScript.Sleep 5000
WScript.Echo "Ending Script"
Output:
-------
Starting Script
Script execution time was exceeded on script "C:\test.vbs".
Script execution was terminated.
See here:
https://www.devguru.com/content/technologies/wsh/wscript-timeout.html
Tx
Ben