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
)
)