有两个for循环,想跳出内层的返回到外层的for循环,应该怎么办?
不知dos有类似break,continue之类的语句么?
具体代码:
@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
在此处加入退出内层for循环的语句
)
多谢!
不知dos有类似break,continue之类的语句么?
具体代码:
@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
在此处加入退出内层for循环的语句
)
多谢!
