:loop random.exe > in.txt bf.exe <in.txt> ans.txt sol.exe <in.txt> out.txt fc ans.txt out.txt if not errorlevel 1 goto loop pause
文件名 a.bat