Pause

Index

The PAUSE command suspends processing of a batch program and displays a prompt to press any key to continue.

Syntax:

PAUSE

Notes:

  1. PAUSE displays the following message:

    
    Press any key to continue . . .
     

  2. Typically, PAUSE is used just before some irrevocable operation are about to take place - eg: file deletions, or disk formats. In such a case, PAUSE would often be preceded by an ECHO statement on the lines of:
    ECHO All files on C: drive will be erased.
    ECHO Press Ctrl-C to stop or
    PAUSE

    which would display as:

    
    All files on C: drive will be erased.
    Press Ctrl-C to stop or
    Press any key to continue . . .
    

  3. Any text following PAUSE is ignored. If ECHO is on, it will be displayed; if ECHO is off it isn't.

File Details:

Internal


If you should have any comments or suggestions,
please contact: Bob Watson
.
This page last revised:
December 9, 1999.