Wscript.Quit

The Quit method quits execution with a specified error code.

Syntax

Wscript.Quit [intErrorCode]
 

Parameters

intErrorCode
If this parameter is included, Wscript returns it as the process exit code. Otherwise, if intErrorCode is omitted, Wscript returns zero (0) as the process exit code.

Example

Wscript.Quit(1)