command line - Batch that runs a timer in the background. How? -


i wondering if theres way make batch file uses timer script (such timeout command) , while timer running, make batch file other processes. when timer runs out, exit. (or carry out small process) know means te batch file have run multiple processes @ once, want know if possible somehow.

any ideas?

you can use start /b cmd /c mytimeout.bat
starts new application in same window (start /?)

with mechanism should able multiple jobs @ same time

edit simple timeout seems bit oversized. timeout of 6 seconds can use like

set starttime=%time% call :timetoms startms starttime set /a timeoutat=startms + 6000 :loop ... wait something, file created, or cd inserted if job_is_ready goto :leavetheloop rem test if timeout reached set currenttime=%time% call :timetoms nowms currenttime if nowms gtr timeoutat goto :leavetheloop goto :loop  :leavetheloop 

it fits better real parallel jobs, display job , key-input job game.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -