The purpose of this command is to suspend execution of a batch file until a key is pressed. The syntax of the pause command is
PAUSE [coIllll\entl
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 and enter
pause Insert the target diskette in drive A




Reply With Quote
Bookmarks