@echo off cls title Scan Cleaner set /p ken=[-] Give me the port: echo. findstr /c::%ken% DFind.txt >> clean.txt del /f /q DFind.txt rename clean.txt DFind.txt for /f "tokens=1 delims=:" %%G in (DFind.txt) do echo %%G>> cleaned.txt del /f /q DFind.txt findstr /v /c:Scan cleaned.txt >> DFind.txt del /f /q cleaned.txt exit