pl**********@gmail.com wrote:
Hi,
I am having a exe application which will be triggered by a external
program.I need to check whether the exe is already running or not.If
the exe is runing i need to discard the external program request.Is
there any function available in c to check whether exe is running or
not
There is not.
Absent some platform specific (hint, hint) method, you could have the
application create a `lock' file of some sort at startup and remove it
when the program ends; if the file exists, you'd know it was running
(or, at least, hadn't terminated normally).
HTH,
--ag
--
Artie Gold -- Austin, Texas
http://goldsays.blogspot.com
"You can't KISS* unless you MISS**"
[*-Keep it simple, stupid. **-Make it simple, stupid.]