There are free components for Delphi that can handle the chore. I use one and 
don't even know how it works ///:-).

dave

--- On Sat, 2/28/09, mauro russo <[email protected]> wrote:
From: mauro russo <[email protected]>
Subject: [delphi-en] Process run check
To: "delphi-en" <[email protected]>
Date: Saturday, February 28, 2009, 10:17 AM

Dear,

how to check if an .exe is in execution?

In practice I would like to be sure that, if a my application A1 faults
and is closed, it is automatically restarted.
I thought to use a secondary very simple deamon application A2 which
checks if A1 is in execution and, if not, launches it by ShelExecute.
Moreover A1 does the same with A2.

Really I would like to use a S.O. resource to make A1 and A2 periodically
"speaking" each other. So, if A1 is running, but hanging, A2 can
choose to
Terminate it and restart it.

I believe there is some simplier way to obtain my goal, but I am not expert
about windows API.

Some help?

Regards,
Mauro.

  ----------

Questa email รจ stata verificata dal sistema centralizzato antivirus della
UniPlan Software


[Non-text portions of this message have been removed]



------------------------------------

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [email protected]! Groups Links






      

[Non-text portions of this message have been removed]

Reply via email to