PAUSE (MSX-DOS)
This page was last modified 16:14, 13 February 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 [<string text>]

Parameter

Adding a <string text> is only possible under MSX-DOS2 / Nextor. This test is displayed before the sentence inviting to press any key.

Examples

Under MSX-DOS

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 / MSX-DOS 2 / Nextor