I will try to put this in a brief synopsis and maybe someone can tell me if what I want to do is feasible with a script or application.
I have a program that runs on a server. Let's call it RandomServiceA.exe.
Frequently we receive calls from the site that a critical process they need to do is NOT working.
We log in to the server to discover that RandomServiceA.exe is not responding.
We launch a batch file I wrote to kill the task and restart the program.
What I want is to automate this process a little more. Is there some way to monitor the program (via task manager or some other way). If said program is "not responding" then run my batch file to kill and restart it?
Spicyness for the person who knows the answer! I promise.