oem.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
PAUSE--Example
Syntax  Notes
────────────────────────────────────────────────────────────────────────────
 
                               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.
 
                                      ♦