If I have a batch file and I am setting arrays with an index that is a variable
@echo off SET x=1 SET myVar[%x%]=happy
How do I echo that t
one way you can do this is to use
call echo %%myVar[%x%]%%
call lets you put variables in places where they wouldn't normally work, if you use the double percents