Batch variable inside a variable not working when called
问题 Inside Test.txt reads a URL on the first line, theres more but for this it unimportant. setlocal EnableDelayedExpansion set browser=chrome.exe set i=0 for %%f in (Test.txt) do ( set i=0 for /F "delims=" %%l in (%%f) do ( set /A i+=1 set line!i!=%%l )) ::the above read the contents of Test.txt and saved each line to a different Variable made up of two variables set x=0 :ReadLines if %x% gtr %i% ( goto Completed) set /a x+=1 set /a odd=%x%%%2 if %odd%==1 ( set Address=!line%x%! echo !Line%x%! :