Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I using a custom .bat file that closes my chrome browser, but can't seem to find information on what syntax I need to add in order for the process to end after a given amount of time. Can anyone, at least, point me in the right direction?

As an example of what I am trying to do, I want chrome to close 30 minutes from when I execute the following .bat file: taskkill /F /IM chrome.exe* I imagine I am missing something quite simply here.

Cheers

share|improve this question

1 Answer 1

you can insert before your command

timeout /t 3600

which will pause your batch for 3600 seconds (60 minutes).

share|improve this answer
    
Thank you. It worked just as I had hoped. –  user196150 Feb 6 '13 at 21:53
    
soo..can you accept my answer then? –  BroScience Feb 7 '13 at 18:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.