Making a Working Double Variable-Bath File?

...custom / ...custom
May 1, 2009 at 17:14:18
Specs: Windows Vista 64-Bit, 16GBs
Ok, I need to make a "Double Variable". What I mean by this is accually make a batch file process a variable inside of a variable.

Example:

@echo off
set a=0
echo When you reach 10, you win!
:top
set /a b%a%=%a%+1
echo %b%a%%
if %b%a%%==10 goto end
goto top
:end
echo You Win!.
pause

I already thought of trying to juggle variable, but couldn't come up with anything. Got any ideas?


See More: Making a Working Double Variable-Bath File?

Report •


#1
May 1, 2009 at 19:34:26
Try:

call echo %%b%a%%%



Report •
Related Solutions


Ask Question