|
The PAUSE command suspends processing of a batch program and displays a prompt to press any key to continue.
Syntax:
PAUSE
Notes:
- PAUSE displays the following message:
Press any key to continue . . .
|
- 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 . . .
|
- Any text following PAUSE is ignored. If ECHO is on, it will be displayed; if ECHO is off it isn't.
File Details:
Internal
|