Skip to main content

All Questions

Tagged with
2 votes
1 answer
392 views

SHIFT command does not work on %*

When using the SHIFT command to shift the script parameters one position down, I can see the values shift by echo-ing the %1 parameter: :: scr1.bat echo %* echo %1 shift echo %1 Then: > scr1.bat ...
ysap's user avatar
  • 2,690
3 votes
1 answer
2k views

how to shift all parameters in a batch

The well-know shift command can be used to shift positional parameters in batch file, BUT it does not affect the special variable %*. The shift command has no effect on the %* batch parameter. Is ...
eadmaster's user avatar
  • 1,266