[Toc][Index]

Interrupting a Batch File


You can usually interrupt a batch file by pressing Ctrl-C or Ctrl-Break. 
 Whether and when these keystrokes are recognized will depend on whether 
the command processor or an application program is running, how the 
application (if any) was written, and whether the ON BREAK command is in 
use. 
If CMD.EXE detects a Ctrl-C or Ctrl-Break (and ON BREAK is not in use), it 
will display a prompt, for example: 


        Cancel batch job C:\CHARGE.BTM ? (Y/N/A) :

Enter N to continue, Y to terminate the current batch file and continue 
with any batch file which called it, or A to end all batch file processing 
regardless of the batch file nesting level.  Answering Y is similar to the 
QUIT command; answering A is similar to the CANCEL command. 

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