PAUSE

The description below is from the book
DOS the Easy Way by Everett Murdock Ph.D.

CLICK HERE for information about downloading the book.

Type: Internal (1.0 and later)

Syntax:

PAUSE [comment]

Purpose: Suspends execution of a batch file until a key is pressed.

Discussion

PAUSE suspends execution of the batch file and displays the message

Strike a key when ready ...

With some versions of DOS, a comment may also be entered on the same line as PAUSE. The comment prompt is displayed before the Strike a key when ready message.

For more information on PAUSE and other batch commands, see Chapter 5, Using Batch Files, in the downloadable book DOS the Easy Way .

Example

To suspend execution of a batch file and display the message Insert the target diskette in drive A, enter

pause Insert the target diskette in drive A




Back to the Easy DOS Command Index