Microsoft® Windows® Script Host Quit Method |
WSH Reference Version 1 |
Quits execution with a specified error code.
object.Quit [intErrorCode]
Part Description object WScript object. intErrorCode Optional. If this parameter is included, WScript returns it as the process exit code. If intErrorCode is omitted, WScript returns zero (0) as the process exit code.
The following example quits execution and returns an error code of 1:WScript.Quit 1