退出命令解释器或当前的批处理脚本。
Syntax
exit [/b] [<exitcode>]
Parameters
Parameter | Description |
---|---|
/b | 退出当前的批处理脚本,而不是退出 Cmd.exe。 如果从批处理脚本外部执行,则退出 Cmd.exe。 |
<exitcode> |
指定数字。 If /b is specified, the ERRORLEVEL environment variable is set to that number. 如果要退出命令解释器,则将进程退出代码设置为该数字。 |
/? | 在命令提示符下显示帮助。 |
Examples
若要关闭命令解释器,请键入:
exit