@echo off:Loopif "%time:~0,2%%time:~3,2%" equ "600" exitif exist OK.oyj (start 1.bat) else (start 2.bat&start XX.exe)goto Loop