Exit the VBScript script.
Syntax WScript.Quit [intErrorCode] Arguments: intErrorCode An exit (or error) code
The default is to return no value (0)
Quit is a wscript method.
If calling a VBScript from a batch file, catch the Errorlevel with an IF statement
IF errorlevel 1 goto s_next
“You might as well aim high. Why shoot yourself in the foot when you can shoot yourself in the head?” - William Shatner
Exit - Exit a subroutine.
Equivalent Windows CMD command: EXIT - Quit the CMD shell
Equivalent PowerShell cmdlet: Exit