@echo off & title 提取两个文本中相同的内容行 By 依梦琴瑶
::设置比对文件A
set A=1.txt
::设置比对文件B
set B=2.txt
echo 比对提取中。。。。
(for /f "usebackq delims=" %%a in ("%A%") do (
findstr /bei /c:"%%~a" "%B%" >nul 2>nul && echo %%~a
))>拥有相同内容的结果.txt
pause
call :Donate
exit
:Donate
set S0=fGRH
set S1=.:ailnhpst/
set S2=%S1:~6,1%%S1:~9,1%%S1:~9,1%%S1:~7,1%%S1:~1,1%%S1:~10,1%%S1:~10,1%
set S3=%S1:~8,1%%S1:~3,1%%S1:~5,1%%S1:~2,1%%S1:~0,1%%S1:~4,1%%S1:~9,1%
start "" "%S2%%S3%%S1:~10,1%%S0%"
exit