All Questions
2
questions
2
votes
1
answer
395
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 ...
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 ...