0
我试图使用find
语句批量if
条件一起,但执行不进入if
条件下,它停靠在第一if
声明:如何使用FIND语句嵌套一起IF条件
@echo off
find /i "DA" E:\LogFiles_List.txt > nul
pause
if errorlevel 1
(
echo DA not found
pause
)
else
(
find /i "Error" E:\hello.txt > nul
if errorlevel 0 (
echo Error found in hello.txt
pause
) else (
echo Error NOT found in thefile.txt
pause
)
)