I am trying to check in a .bat if the VAR1 to VAR10 are not equal to "". And if so, i want to echo the content of the var. Like in the not working example below
FOR /L %%G IN (1,1,10) DO (
IF "%SYSTEM%%%G" NEQ "" (
echo %SYSTEM%%%G%
)
)
I am trying for hours, maybe someone have a tip for me.