CODE: [Copy to clipboard]@echo off for /f "delims=" %%i in (a.txt) do ( findstr /c:"%%i" 1.txt 1>nul||echo %%i ) pause