echo,序列 2.txt 1.txt
for /f "delims=" %%i in ('type "2.txt"')do (
set/a "n2+=1"
for /f "delims=" %%n in ("!n2!")do (
if not defined $%%n for /f "delims=" %%z in ('type "1.txt"')do set/a "n1+=1"&&set "$!n1!=%%z"
if /i not "!$%%n!"=="%%i" echo,%%n %%i !$%%n!
)
)
if /i not "!n1!"=="!n2!" echo,重要错误行数不同!n1!≠!n2!