Index | Syntax | Notes Batch



PAUSE--Example

Suppose you want a batch program to prompt the user to change disks in one of the drives. To do this, you might create the following file: @echo off :begin copy a:*.* echo Please put a new disk into drive A pause goto begin In this example, all the files on the disk in drive A are copied to the current directory. After the displayed comment prompts you to place another disk in drive A, the PAUSE command suspends processing so that you can change disks and then press any key to resume processing. This particular batch program runs in an endless loop. The GOTO BEGIN command sends the command interpreter to the begin label of the batch file. To stop this batch program, press CTRL+C and then Y.
-Top- | Syntax | Notes Batch