Ask everyone
The content in 1.txt is: 123123
The content in 1.bat is:
type 1.txt |find "123123"
echo %ERRORLEVEL%
echo.type 1.txt |find "123123"
echo %ERRORLEVEL%
The result returns 0 and 1, why not 0 and 0??
The content in 1.txt is: 123123
The content in 1.bat is:
type 1.txt |find "123123"
echo %ERRORLEVEL%
echo.type 1.txt |find "123123"
echo %ERRORLEVEL%
The result returns 0 and 1, why not 0 and 0??



Thanks! Now it's okay.