I have many strings set. There names are: User1 User2 User3 User4
And so on. They all are equal to random text. I want to display all of these Strings into the command line. This is one thing i've tried:
set /a N=1
:Loop
echo %N% - %%User%N%N%%
set /a N+=1
goto Loop
The variable N starts at one, and each time :Loop is ran, it counts up. Im not worried about it going on forever right now, I just want it to display every String. Heres the output of what I tried:
1 - %User1N%
2 - %User2N%
It replaces %%Users%N%N%% with %User1N% when N = 1, which is almost what I want. But I want it to also replace %User1% with what that string is equal to. Some help would be appreciated.