Tandy 1000 MS-DOS Reference Manual page 184

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

Advertisement

Chapter 6 / Command Reference
SHIFT
SHIFT
Internal
: I
U
Lets you use more than the usual ten replaceable parameters
(0%-9%) in batch file processing.
Notes and Suggestions
• To see how SHIFT works, suppose a batch file, Money.bat,
contains replaceable parameters, defined on the left in the fol-
lowing chart. When you enter the SHIFT command, each defi-
nition shifts one place. Instead of replacing
%n,
it replaces
%n-l.
Definitions Before
Definitions After
Shift
Shift
%0
=
Money
%0
=
Pharm.dat
%1
=
Pharm.dat
%1
=
Autodeal.dat
%2
=
Autodeal.dat
%2
=.
Hardware.dat
%3
=
Hardware.dat
%3
=
Grocery.dat
%4
=
Grocery.dat
%4
=
Dimestor.dat
%5
=
Dimestor.dat
%5
=
Theater.dat
%6
=
Theater.dat
%6
=
Cafe.dat
%7
=
Cafe.dat
%7
=
Photo.dat
%8
=
Photo.dat
%8
=
Beauty.dat
%9
=
Beauty.dat
%9
=
Undefined
As you can see, %9 is now open to be redefined. Money, on the
other hand, no longer replaces any parameter. If you must
refer to Money again, you must· set an environment variable
equal to %0 before you use the SHIFT command.
• You can execute as many shifts as needed. If you do, however,
include ECHO
%n
in your file as needed to keep track of each
replaceable parameter's current definition.
170
I
I
c...J
I
I
I.-;
, I
LJ
: I
L...J
J
I
LJ
I
U
, I
U
I
'
: !
----'

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents