Table of Contents

Advertisement

PAUSE
Purpose
Suspends execution of a batch file.
Form
PAUSE [comment]
Description
During the execution of a batch file, you may need
PAUSE
1.
to change disks or perform some other action,
suspends execution until you press any key, except the
CTRL and C keys depressed together.
V/hen the PAUSE command is encountered by the
system, this prompt will be displayed:
Strike a key when ready
2.
• • •
3.
If you depress the CTRL and C keys together at this
point, another prompt is displayed:
Abort batch job (Y/N)?
If you enter Y in response, executoin of the reminder
of the batch command file is ended ands control is
returned to the operating sysem.
4.
An option comment or message, [comment], may be
entered on the same line as pause.
You may want to
prompt the user of the batch file with some meaningful
message when the batch file has paused.
The comment is
displayed before the "Strike a key" message.
4-36

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents