The description below is from the book DOS the
Easy Way by Everett Murdock Ph.D.
CLICK HERE
for information about downloading the book.
Type: Internal (2.0 and later)
Syntax:
SHIFT
Purpose: Increases number of replaceable parameters to more than
the
standard ten for use in batch files.
Discussion
Usually, you can only enter up to ten parameters at the time you start a
batch
file (%0 through %9). Use this command to shift the assignable
parameters to
make room for the use of additional entries.
For more information on SHIFT and other batch commands, see Chapter 5,
Using Batch Files, in the downloadable
book DOS the Easy Way .
Example
If you started a batch file named GO.BAT by entering the following on the
command line:
go X1 X2 X3 X4 X5 X6 X7 X8 X9 X10
the parameters available for use in the batch file GO will be set as
follows:
The set parameters are shifted one higher, giving you access to more than
ten parameters. Each time you enter the SHIFT command, the parameters used
by the batch file are shifted up one position.