setlocal enabledelayedexpansion
for /f "delims= tokens=*" %%i in (A.inf) do (
set n=1
for /f "eol=tokens=*" %%j in (test.txt) do if "%%i"=="%%j" set n=0
if !n! equ 1 echo %%i>>TMP.inf
)作者: HAT 时间: 2008-5-28 13:29 找出包含在A.inf中,但不包含在test.txt中的行,并把他们输出到TMP.inf中。