Click here to Skip to main content
15,903,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi


I am doing c++ project ,and i want to exit from command prompt window?how is it possible?
Posted
Updated 16-Sep-10 22:59pm
v2

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.


VB
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

.
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900