# 退出 > 退出当前的 CMD 实例或当前的批处理文件。 > 更多信息:。 - 退出当前的 CMD 实例: `exit` - 退出当前的 [b]atch 脚本: `exit /b` - 使用特定的退出代码退出: `exit {{2}}`