• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Documentation Help for SHIFT Command

Apr 18, 2014
156
3
#1
On the documentation page for SHIFT (TCC > Commands > Shift) I'm confused by the figures given. The first line says it allows the use of more than 512 parameters in a batch file. But just below that, under "usage" it says CMD can only handle 10 parameters and TCC supports 4096 parameters.

I suspect some limits in TCC have been changed and the help hasn't been updated to match.
 
Jun 2, 2008
284
1
Newton, MA
#4
Rex, why should one not use SHIFT, and what should one do instead? I have batch files that use it when I want to cycle through multiple command-line arguments with DO WHILE ... process %1 ... SHIFT ENDDO.
 
Top Bottom