system ( "start Example.bat 30" ); # 30 is the time in seconds to sleep print "Finished"; #### timeout /t %1 :setError Exit /B 5