It quits command prompt(cmd.exe) program or the current batch script.
To view 'exit' command with its all possible parameters you can use following command. Its like help information to regarding that command.
To view 'exit' command with its all possible parameters you can use following command. Its like help information to regarding that command.
exit /?
Syntax :
EXIT [/B] [exitCode]
where,
/B : It specifies to exit from current batch file script
instead of cmd.exe. If executed from outside a batch
script, it will quit cmd.exe
exitcode : It specifies a numeric number. If /B is
specified, it sets ERRORLEVEL that number. If quitting
cmd.exe, it sets the process exit code with that number.
Use 1:
exit
exit
Output :
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. D:\DINESH > exit
No comments:
Post a Comment