File 1: test-on-error.vbs
On Error Resume Next
x = 13
x = 12/0 'Ignored and Passed
Msgbox x
y = 15
y = 12/0 'Ignored and Passed
Msgbox y
File 2: test-on-error2.vbs will alert "exception" division by zero
On Error Resume Next
x = 13
x = 12/0 'Ignore and Passed
Msgbox x
Err.Clear
On Error Goto 0
y = 13
y = 12/0 ' Stop here
Msgbox y