beautypg.com

Avery Dennison 6037 Rev. AA 3/04 Programmer Manual User Manual

Page 98

background image

4-56 ROM-DOS Internal Commands

P A U S E

Batch File, Internal Command

The PAUSE command suspends the execution of a batch file and
resumes operation when any key is pressed.

Syntax

PAUSE

Remarks

A batch program may require that you perform some action such as
changing disks or choosing to continue or terminate the operation. When
the command processor encounters PAUSE, it suspends execution and
displays the message

Strike a key when ready...

After you perform the appropriate action, or make a decision, striking any
key other than the combinations Ctrl+C or Ctrl+Break resumes the batch
job. If you press Ctrl+C or Ctrl+Break at this point, ROM-DOS displays

Terminate batch job (Y/N)?

Responding Y ends the batch job. Therefore, strategic placement of the
PAUSE command allows you to divide the batch file into sections so you
can end it at some intermediate point. The

message option allows you to

display a reminder on the screen during the pause. Your message
precedes the “Strike a key” message. Note, however, that your message
appears only if ECHO is on.

Example

PAUSE Place blank disk in drive A:

Prompts the user to insert a disk and suspends operation until a key has
been hit.