View Single Post
Old Nov 11th, 2007, 10:43 AM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Re: RND batch file example

This doesn't make any sense:
FOR %%v IN (SET SHIFT GOTO:Loop1) DO %%v R%2=%3
That's going to try to generate some like:
SET R1=1
SHIFT R1=1
GOTO:Loop1 R1=1
Presumably, the GOTO will short-circuit and survive that extra parameter. SHIFT apparently won't. SHIFT, if command extensions are on, will accept a parameter in the form of "/n", where n is the parameter number to begin the shift from. R1=1 won't qualify.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote