@echo off
:loop
rand.exe > rand.txt
std.exe < rand.txt > std.txt
my.exe < rand.txt > my.txt
fc std.txt my.txt
if not ErrorLevel 1 goto loop
pause
@echo off
:loop
rand.exe > rand.txt
std.exe < rand.txt > std.txt
my.exe < rand.txt > my.txt
fc std.txt my.txt
if not ErrorLevel 1 goto loop
pause