There are two for loops. I want to break out of the inner one and return to the outer for loop. What should I do?
Does DOS have anything like break or continue?
The specific code:
@echo off
for /f "delims=" %%i in (1.txt) do call :ss %%i
:ss
set a=%1
setlocal ENABLEDELAYEDEXPANSION
for /f "delims=" %%j in (2.txt) do (
set b=%%j
if !a! NEQ !b! echo %%j>new.txt
Add a statement here to exit the inner for loop
)
Many thanks!
Does DOS have anything like break or continue?
The specific code:
@echo off
for /f "delims=" %%i in (1.txt) do call :ss %%i
:ss
set a=%1
setlocal ENABLEDELAYEDEXPANSION
for /f "delims=" %%j in (2.txt) do (
set b=%%j
if !a! NEQ !b! echo %%j>new.txt
Add a statement here to exit the inner for loop
)
Many thanks!
