Quincy Center for Technical Education
Computer Technology Department

Shift

Changes the position of replaceable parameters in a batch file.

shift

When command extensions are enabled (the default setting in Windows 2000), the shift command supports the /n switch, which tells the command to start shifting at the nth argument, where n can be a value from zero to eight. For example,

SHIFT /2

would shift %3 to %2, %4 to %3, and so on, and leave %0 and %1 unaffected.