Tandy 1000 MS-DOS Reference Manual page 185

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

Advertisement

r-.
I '
I'
I
i
I
r
I
'
r
I
r
I
Chapter 6 / Command Reference
Examples
s
h i
f t
I
ENTER
I
shifts all parameters that replace the parameters %0 through
%9 down one. Suppose that, before the shift, %1 equals Den-
file.dat and %2 equals Myfile.dat. After the shift, %0 equals
Denfile.dat and %1 equals Myfile.dat.
copy con shiftcop.bat
I
ENTER)
rem Stop execution at
pause after all
files are
cop
i
e d
I
ENTER
I
: p a use
I
ENTER
I
p a use
I
ENTER
I
cop y a: \ use r \ X 1 b: \ use r \ X 1
I
ENTER
I
s h i
f t
I
ENTER
I
got
0
p a use
I
ENTER
I
rm
I
ENTER
I
is a batch file that lets you copy as many files as you wish from
A: \ USER to B: \ USER. It substitutes the first given file for %1
and copies it. Then it substitutes the next file, copies it, and so
on. This way you can use SHIFT to gain access to more than ten
replaceable parameters. Even if you don't need that many
parameters, however, you can use SHIFT to save typing time.
To copy the files Find.exe, Name
1.
asm, and Name2.asm from
A: \ USER to B: \ USER, enter the name of the batch file, followed
by the files to copy, as shown here:
shiftcop find.exe name1.asm name2.asm
I
ENTER
I
The batch file pauses before each copy, giving you the option to
stop. After it copies all files, press
I
CTRL
I
@] at the PAUSE prompt
(Stnke a
key when ready ••• ).
171

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents