For Programmers: Free Programming Magazines  


Home > Archive > Extreme Programming > November 2004 > Kill EXE if running









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Kill EXE if running
Suyamindra

2004-11-05, 8:55 am

Hi,
I have a set of automated scripts that run only when one of my
application is not open. Some times I forget to close this application
and the scripts fail, can i have a program to check if this
application is running and if yes, i need to kill this before my
scripts start executing. I am on win2K system.

Thanx in advance
Suyamindra
Phlip

2004-11-05, 3:56 pm

Suyamindra wrote:

> I have a set of automated scripts that run only when one of my
> application is not open.


That sounds like a daily build script. (Daily builds are one of the topics
of this newsgroup.)

> Some times I forget to close this application
> and the scripts fail, can i have a program to check if this
> application is running and if yes, i need to kill this before my
> scripts start executing. I am on win2K system.


Use Google Groups and search for my street name and "killall". I posted a
little program that kills all processes with a given name.

If you are not a programmer, then you can't compile it, and you shouldn't
use it, because it can kill any process (except those protected by the
kernel).

--
Phlip
http://industrialxp.org/community/b...tUserInterfaces


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com