In windows, I want to loop over a set of environment variables like in this pseudo code:
set MYVAR1=test
set MYVAR2=4711
set MYVAR3="a b c"
for /l %%x in (1, 1, 3) do (
echo %MYVAR%s%%
)
for which I expect the following output
test
4711
a b c
How to change this example code to get it to work?