回复 1# bestcom
V1.bat- @echo off
- set "FileA=a.txt"
- set "FileB=b.txt"
- set "FileC=c.txt"
- cd /d "%~dp0"
- (for /f "tokens=1* delims=|" %%a in ('type "%FileA%"') do (
- findstr /b /e "%%a" "%FileB%" >nul 2>&1
- if not errorlevel 1 (
- echo %%a^|%%b
- )
- ))>"%FileC%"
复制代码
|