How to Ceck if a Process Is Running

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Access 2003. I need to check to see if a particular process (ClickYes.exe) is
running and to kick it off if it is not running. How would I do this
programmatically? Thanks for the help.
 
Dear Alex:

Thanks for the tip. However, the API from Dev Ashish only checks for
applications with windows open. I need to check for a process (that does not
have a window open but does show up in the processes tab of the Task
Manager). Any other ideas?

Alex White MCDBA MCSE said:
Aha,

another user of ClickYes problems with outlook security?

Have a good look at this

http://www.dimastr.com/redemption/

but if you still want to use clickYes (great product),

http://www.mvps.org/access/api/api0007.htm

will tell you if it is running.


and the Shell command within Access will give you the ability to execute it
if it is not running.
 
Hi,

http://support.microsoft.com/kb/q187913/

http://www.developerfusion.co.uk/forums/topic-22835

Review both articles, they will give you the way to detect a running
process, the MS link shows that it is for 9x or NT, the NT code should run
for 2000 or XP.


--
Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

Chaplain Doug said:
Dear Alex:

Thanks for the tip. However, the API from Dev Ashish only checks for
applications with windows open. I need to check for a process (that does
not
have a window open but does show up in the processes tab of the Task
Manager). Any other ideas?
 
Hi Doug,

A well-behaved utility of that kind will check as it loads itself to see
whether it is already running, and if so will not load a second instance
of itself. If that's the case, you don't need to check whether it's
running, just launch it anyway and let it take care of itself.

I don't have ClickYes and don't know how good its manners are, but
before delving into the API I'd see whether it's actually possible to
load multiple instances.
 
Back
Top