DOS script to kill a hung process

April 8, 2010 at 09:18:09
Specs: Windows XP
We have an application that calls a process for 2-3 seconds and then the process goes away. Sometimes, if this process hangs, the whole application also hangs. I need a DOS script that monitors this process in the background and kills it if the process id of the process does not change for 5 seconds. The name of the process is "Alchemy.exe".
I don't know programming with DOS and neither I have the time in hand to learn it.
Thanks for co-operation.

See More: DOS script to kill a hung process

Report •

April 9, 2010 at 21:29:49
You have posted in the DOS forum but you your system say Windows XP.

So which is it; DOS or Windows, two completely different things.

If is is DOS then you wont be able to do it as DOS is a single tasking environment. If a process hangs in DOS you have no option but to restart.

However , it it is a batch script you are looking for to operates under a Windows command prompt you would be better posting in the Windows XP forum.


Report •
Related Solutions

Ask Question