@echo off :loop data.exe > data.txt brute.exe < data.txt > brute.txt my.exe < data.txt > my.txt fc my.txt brute.txt if errorlevel 1 pause goto loop