@echo off :loop rand.exe>zs.in 4146.exe<zs.in>a.out BC.exe<zs.in>b.out fc a.out b.out if not errorlevel 1 goto loop pause goto loop