I'm trying to do the following:
Code: Select all
for /F "tokens=1-2 delims=;" %%a in ('findstr /i "<Caption" "temp"') do (
set /a counter+=1
set /a N+=1
for /F "tokens=1-2 delims=;" %%e in ('findstr /i "text;" "temp"') do (
set /a counter2+=1
if "!counter2!"=="!counter!" (
echo %%b %%e %%f
The problem is that when the program leaves the second "for loop" it was supposed to continue on the first "for loop". But is leaves it too. I think it's because of the goto command.
But since I don't know too much about batch I need help on this.