如何从Commad提示窗口退出? [英] How to exit from Commad prompt window?

查看:81
本文介绍了如何从Commad提示窗口退出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在做c ++项目,我想从命令提示符窗口退出?怎么可能?

Hi


I am doing c++ project ,and i want to exit from command prompt window?how is it possible?

推荐答案

使用EXIT将停止执行批处理文件并返回控制权立即到命令处理器(或使用NT的/B开关,到调用的批处理文件).


Using EXIT will stop execution of a batch file and return control to the command processor (or, with NT''s /B switch, to the calling batch file) immediately.


Using EXIT /B will stop execution of a batch file or subroutine and return control to the command processor or to the calling batch file or code immediately.
EXIT /B is available in Windows 2000 and later versions' CMD.EXE only.
If followed by an integer number the code will return an exit code or ERRORLEVEL equal to that number



您的问题不清楚.
我们使用"exit"命令从命令提示符退出,但是我确定您不希望这样做.
请提供一些有关您的需求的详细信息.
Your question is not clear.
We exit from command prompt using "exit" command, but i am sure you don''t want this.
Please, give some details about your need.


这篇关于如何从Commad提示窗口退出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆