Error DataBase-One Place all Solutions Forums Blog Glossary    Contact Us
Search  
   
Browse by Category
Error DataBase-One Place all Solutions .: Operating Systems .: Windows Operating Systems .: MS DOS .: How to Quit CMD.EXE or the current batch script using EXIT command

How to Quit CMD.EXE or the current batch script using EXIT command

Quit CMD.EXE or the current batch script.

The options below are only available in Windows XP (or later).

Syntax
       EXIT [/B] [exitCode]

Key
    /B        When used in a batch script it will exit the 
              current batch script instead of CMD.EXE.  
              If executed from outside a batch script, it
              will still quit CMD.EXE

    exitCode  A numeric number.  if /B is specified, sets
              ERRORLEVEL that number.  If quitting CMD.EXE, sets the process
              exit code with that number.

How helpful was this article to you?

Related Articles

article How to Count the NT Workgroups that the current uso er is a member of using IFMEMBER command(Resource Kit)
Count the NT Workgroups that the current...

(No rating)  3-9-2008    Views: 102   
article How to Direct a batch program to jump to a labelled line using GOTO command
Direct a batch program to jump to a...

(No rating)  3-9-2008    Views: 156   
article How to Call one batch program from another using CALL command
Call one batch program from another. ...

(No rating)  3-7-2008    Views: 118   

User Comments

Add Comment
No comments have been posted.