日期:2014-05-17 浏览次数:20895 次
@echo off for /f "delims=:" %%a in ('findstr /n "%~2" "%~1"') do (set ts=%%a) for /f "delims=:" %%a in ('findstr /n "%~3" "%~1"') do (set te=%%a) for /f "delims=:" %%a in ('findstr /inx "error" "%~1"') do ( if %%a gtr %ts% (if %%a lss %te% (echo 正确&goto :eof) else (echo 错误&goto :eof)) ) echo 错误