
September 10th, 2007, 11:18 AM
|
|
Registered User
|
|
Join Date: Sep 2007
Posts: 1
Time spent in forums: 5 m 27 sec
Reputation Power: 0
|
|
|
Get list of running services...
We have a number of Windows services at our location (custom, not Windows out of the box...).
At times these go down, quietly, and we don't know until there is a problem. We'd like to be able to see when the service goes down and be alerted promptly using our telephony system.
We can write the code to link to the telephony system with no problem, what we don't know how to do, is from .net (vb.net preferably) get a list of what services are running, the we can just compare to the list of services we expect to be running and call out if one or more is missing.
Does anyone know of an article (or method) for one windows service to check if another windows service is running?
It could be that it directly checks, ie: knows to look for service named 'Fred', or could get a list of all services running and drop them in an array or something...
Thanks.
|