haichuan5121 当前离线
三级士官
TOP
ShowCode 当前离线
VIP1
@echo off for /f "delims=" %%i in ('findstr "^合格" "log1.txt"') do ( echo %%i goto next1 ) :next1 for /f "delims=" %%i in ('findstr "^不合格" "log1.txt"') do ( echo %%i goto next2 ) :next2 pause复制代码
@echo off for /f "delims=" %%a in ('dir /b /a-d "log*.txt"') do ( call :GetGood "%%a" ) goto :end :GetGood for /f "delims=" %%i in ('findstr "^合格" "%~1"') do ( echo "%~1" %%i goto :GetBad ) :GetBad for /f "delims=" %%i in ('findstr "^不合格" "%~1"') do ( echo "%~1" %%i goto :eof ) :end pause复制代码
老刘1号 当前离线
论坛巡查