- @echo off
- echo 日期 时间 文件名>"CHECK_RESULT.txt"
- (for /l %%i in (1,1,10) do (
- REM 第一类
- if exist AAAA_%%i.txt (
- for /f %%j in ('type AAAA_%%i.txt ^| find /c "a"') do (
- if %%j equ 0 (
- echo %date:~0,10% %time:~0,8% AAAA_%%i.txt
- )
- )
- )
- REM 第二类
- if exist BBBB_%%i.txt (
- for /f %%j in ('type BBBB_%%i.txt ^| find "/" ^| find /v /c "in-service"') do (
- if %%j neq 0 (
- echo %date:~0,10% %time:~0,8% BBBB_%%i.txt
- )
- )
- )
- REM 第三类
- if exist CCCC_%%ia.txt (
- for /f %%j in ('type CCCC_%%ia.txt ^| find /c "a"') do (
- if %%j neq 8 (
- echo %date:~0,10% %time:~0,8% CCCC_%%ia.txt
- )
- )
- )
- REM 第四类
- if exist DDDD_%%ib.txt (
- for /f %%j in ('type DDDD_%%ib.txt ^| find /c "a"') do (
- if %%j neq 8 (
- echo %date:~0,10% %time:~0,8% DDDD_%%ib.txt
- )
- )
- )
- ))>>CHECK_RESULT.txt
复制代码
|