Related questions
VBScript -- Using error handling
I want to use VBScript to catch errors and log them (ie on error "log something") then resume the next line of the script.
For example,
On Error Resume Next
'Do Step 1
'Do Step 2
'Do Step 3
When an error occurs …
Can I throw an error in vbscript?
I'm used to programing in C#, which obviously has some pretty robust error handling. Now I'm working on a short project in VBScript. I've read about the error handling with VBscript using "On Error _______" and the Err global variable.
However, …
Suppress errors for the whole script
I am want to suppress all the errors that could appear in my VBS logon script.
Can I surround the WHOLE 500 lines script with :
On Error Resume Next
'[... whole script (~500 lines of code) ...]
On Error GoTo 0