EXIT Command

The EXIT command quit pBat current instance, optionally returning an exit code. Exit can also be used to exit the current subroutine.

Synopsis

EXIT [/b] [code]

Exit the command prompt.

If code is not specified, then the %ERRORLEVEL% value is unchanged.

Compatibility

Available since 0.4.

Compatible with cmd.exe

See also

GOTO command, Command list