Computer and Software Support


DOS Command Pause

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.

 

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
 

This page is from http://www.easydos.com. I pasted it on my website to avoid possible broken links. For further help with DOS commands, Check easydos.com out.