Saved Bookmarks
| 1. |
Solve : Wildcards in a variable? |
|
Answer» Can I use wildcards when defining a variable name? Like this: you need a programming construct called an array. batch doesn't have that... (although in batch you could probably do a enable delayed expansion , use a for loop and set to create each individual variables with those names)So this should work? For /L %%a in (1,1,10) do set num%%a=abc Right?no it doesnt i just tried itQuote from: smeezekitty on August 29, 2009, 06:24:13 PM no it doesnt i just tried itDid you do that from the COMMAND prompt or a batch FILE? One % for command prompt, two % for batch file.oops i forgot that yes it does work |
|