Published on: 24th Nov 2011 | Last Updated on: 24th Nov 2011
Exit Command :
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.
Syntax : EXIT [/B] [exitCode]
/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.
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.
D:\DINESH > exit
Link this post on your Blog/Website :