Dos - Exit

Card Puncher Data Processing

About

The exit command quits:

Syntax

EXIT [/B] [exitCode]

where:

  • /B specifies to exit the current batch script ant not CMD.EXE.
  • exitCode specifies a numeric number. If /B is specified, sets ERRORLEVEL that number. If quitting CMD.EXE, sets the process exit code with that number.





Discover More
Card Puncher Data Processing
DOS ErrorLevel - How to manage errors with the exit code ?

This article shows you how to manage error handling with the exit code of DOS. In dos: When the errorlevel is: * = 0, then No Error occurred * > 0, then an error occurred You can test if with...
Card Puncher Data Processing
Dos - (Batch) Script

The batch script is a text file with the extension .bat or .cmd that is interpreted by a batch interpreter. You can call a batch script by : writing its name in the source script: The script execution...



Share this page:
Follow us:
Task Runner