| 
 | 
 
@echo off 
echo **********批处理循环嵌套********** 
echo df hi hdi 4sd gfsdsdf s dfs>test 
for /l %%a in (1,1,3) do ( 
echo %%a 
for /f "tokens=1,3,4,5" %%b in (test) do ( 
echo      %%b 
if %%b==df ( 
echo here 
) 
if %%b==df ( 
echo           %%c 
echo           %%e 
if %%c==hi ( 
echo. 
echo           OK 
goto end 
) 
) 
) 
) 
echo. 
echo not found 
:end 
echo **********结束.按任意键退出********** 
del test /q 
pause>nul 
 |   
 
 
 
 |