I have a vbscript that calls a function. However this function for some reason doesnt seem to return. I have no access to the code of this function. Its some third party function. My question is this: Is there a way I could set a timer or do something, so that if the function doesnt return after a given period, I can gracefully exit the script.
e.g
WScript.StdOut.WriteLine "I am about to call function a"
' call function a
b = a("hello", "bye"
WScript.StdOut.WriteLine "out of function a"
' Function a
Function a(p, q)
.... Stuck in an indefinite loop
End Function
e.g
WScript.StdOut.WriteLine "I am about to call function a"
' call function a
b = a("hello", "bye"
WScript.StdOut.WriteLine "out of function a"
' Function a
Function a(p, q)
.... Stuck in an indefinite loop
End Function