Batch loop for a duration of time -


i have batch file infinitely runs set of commands using goto label. turn loop runs predetermined number of minutes. best way under windows xp , up?

parse time variable @ beginning , add desired minutes.
need cheack in each loop if stop time reached.

set "starttime=%time%" split time hour, minutes, seconds add desired minutes regarding overflows hour field.  begin loop parse current time check if hours , minutes reached else restart loop 

Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

mysqli - Php Mysqli_fetch_assoc Error : "Warning: Illegal string offset 'name' in" -

javascript - Chart.js - setting tooltip z-index -