I have an array defined as LIST=(abcde) . a, b, c, d, e are set as system variables, for example. a=AAA, b=BBB , etc.
In a script package, I would like to make a for loop similar to:
for %%i in %LIST% do echo %%i=%%%i% (unfortunately, this doesn't work)
What I want to achieve is %%i (a) = %%%i% (%a%) , which will be resolved as a system variable, so instead of displaying %a% it will be resolved as a=AAA .
Do you have any ideas how to do this in a script package?
Thanks!
source share