PAUSE (MSX-DOS)
This page was last modified 14:24, 1 June 2020 by Mars2000you. Based on work by Rderooy.

Contents

Effect

Prompts and waits for a key press on the MSX-DOS command line or in a batch file.

Under MSX-DOS 2 / Nextor, the system will then echo the key pressed if it is a printable character.

Note: Any key can be pressed, except CTRL+C when using the command in a batch file, because it will display the following message for possibly stopping the execution of the batch file: Terminate batch file (Y/N)?

Syntax

PAUSE <StringText>

The parameter is optional.

Parameter

<StringText> is the text that will be displayed before the sentence inviting to press any key. This parameter is only available under MSX-DOS 2 / Nextor.

Examples

Under MSX-DOS 1

A>PAUSE
Strike a key when ready
A>

Under MSX-DOS 2 / Nextor

(with "g" key pressed down):

A>PAUSE
Press any key to continue...
g
A>
A>PAUSE Insert document disk in drive B:
Insert document disk in drive B:
Press any key to continue...
g
A>

Compatibility

MSX-DOS 1 with COMMAND.COM, MSX-DOS 2 / Nextor with COMMAND2.COM v2.20 and higher