回复 6# freesoft00 - @echo off & setlocal enabledelayedexpansion
- (for /f "delims=" %%a in ('type "1.txt"') do (
- set n=0
- for /f "delims=" %%b in ('type "2.txt"') do (
- if "%%a" equ "%%b" set n=1
- )
- if !n! neq 1 echo,%%a
- ))>"3.txt"
- ::move "3.txt" "1.txt"
- pause
复制代码
|