BATCH FILE: loop inside a for loop - Computer Tech Support Forum - Windows - Linux - Mac - Computin
I just took a look at your script and noticed you use the same index (%%i) in either the inner and outer loop; so change the inner index with e.g. %%m and see if it works. @echo off setLocal EnableDelayedExpansion for /f %%i in (input.txt) do (set var=%%i...