Batch CMD If Befehl?
:sortclass0
set count=0
:sortclass1
set /a count0=%count0%+1
if var%count1%==x set /a ergebnis=y
if %count1% GEQ %maxvar% goto sortclass2
goto sortclass1
Hallo, mein Problem:
Ich habe eine Reihe an variablen var1, var2, var3 ... und will alle nach einem bestimmten Wert absuchen allerdings erkennt das if "var%count1%" nicht als eine Variable an wie kann ich die kombination von "var" mit einer variablen zahl als variable in "if" nutzen?