Tandy 1000 MS-DOS Reference Manual page 154

Hide thumbs Also See for 1000 MS-DOS:
Table of Contents

Advertisement

Chapter 6 / Command Reference
PAUSE
PAUSE
[message]
Internal
I
I
L;
, i
-J
I
i
~
Suspends execution of the batch file and lets you exit the batch
file or continue.
Parameters
message specifies a message to display. The message and s
t r ike
a key when ready . . .
appear on the screen if echo is on.
Notes and Suggestions
• When MS-DOS encounters the PAUSE command, while run-
ning a batch file, it stops and displays the message:
Strike a key when ready ...
At this time, you can press the space bar to continue execu-
tion, or you can press
I
CTRL
I
(]J
to display:
Terminate batch job (YIN)?
If you press
Y,
execution ceases and control returns to MS-
DOS. If you press
N,
execution continues.
• During the execution of the batch file, you might need to per-
form some action before executing the next command (change
diskettes or ready the printer, for example).
Whenever this is the case, include a PAUSE command where
necessary. For example, suppose you want to list two files that
are on different diskettes. Create a batch file by typing:
cop y con t y p file s . bat
I
ENTER
I
rem this file types the files rental.dat and
sales.dat
I
ENTER
I
rem i t i s cal led t y p f i 1 e s . bat
I
ENTER
I
t y p e b: r e n tal . d a t
I
ENTER
I
pause
I
ENTER
I
.
t y p e b: sal e s . d a t
I
ENTER
I
ill]
I
ENTER
I
140
I
I
~
,
I
i
I
'-..J
I
!
I
I
I
--'
\
, I
L.J
,
,
I
' - .-J
:
~
\
f
'--'
, I
~

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents