[Toc][Index]

QUIT - Terminate a batch file

 
 Purpose:    Terminate the current batch file. 
             
 Format:     QUIT [value ] 
             
             value :  The numeric exit code to return to CMD.EXE or to the 
             previous batch file. 
 
 See also:  CANCEL. 
 Usage 
 QUIT provides a simple way to exit a batch file before reaching the end 
 of the file.  If you QUIT a batch file called from another batch file, 
 you will be returned to the previous file at the line following the 
 original CALL. 
 QUIT only ends the current batch file.  To end all batch file processing, 
 use the CANCEL command. 
 If you specify a value, QUIT will set the ERRORLEVEL or exit code to that 
 value.  For information on exit codes see the IF command, and the %? 
 variable. 
 You can also use QUIT to terminate an alias.  If you QUIT an alias while 
 inside a batch file, QUIT will end both the alias and the batch file and 
 return you to the command prompt or to the calling batch file. 

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs