WScript.Quit() (Method)

Terminates the script and returns an error code.

Availability:

JScript - 3.0
JavaScript syntax:WSHWScript.Quit(anErrCode)
Argument list:anErrCodeAn error code to be sent back to the caller

The current instance of cscript or wscript is killed and an error returned to the calling shell.