tldr/pages.zh/windows/exit.md

17 lines
312 B
Markdown
Raw Normal View History

2019-03-10 14:54:08 +00:00
# exit
> 退出当前的命令行实例或 bat 脚本。
> 更多信息:<https://learn.microsoft.com/windows-server/administration/windows-commands/exit>.
2019-03-10 14:54:08 +00:00
- 退出当前的命令行实例:
2019-03-10 14:54:08 +00:00
`exit`
- 退出当前的 bat 脚本:
2019-03-10 14:54:08 +00:00
`exit /b`
- 使用一个指定的退出码退出:
2019-03-10 14:54:08 +00:00
`exit {{退出码}}`