VBS script to kill process after x amount of seconds
Posted on 2009-03-30
I have a program that opens up microsoft word. Sometimes that program hangs, which means that Microsoft word is still open. I would like to get a script that will run lets say every 5 minutes and check to see how long Microsoft word has been open. If it has been open for lets say 15 minutes or more, I want it to email me. I have figured out how to make things email me but I have not figured out how to have it calculate how long a program has been open and then perform an action based on the result.
Any help would be greatly appreciated.