Get path for install service
- From: timburda@xxxxxxxxxxx
- Date: 20 Apr 2005 08:04:53 -0700
Scenario:
I have a service which has been installed in the service component
manager.
I am writing a second program (completely unrelated to the service)
which will run stand alone. I can find all of the services on the
machine with the following line of code:
System.ServiceProcess.ServiceController[] foo =
System.ServiceProcess.ServiceController.GetServices();
My question / problem is:
Is there a way for me to use the information returned by the method
call for an instance of a service (a particular service which I know
the name) to map that back to the pathname for the installed service?
If not, does anyone have any suggestions on a different approach to the
problem???
I am using C# (and accordingly .NET)
Thanks -
Tim Burda
.
- Follow-Ups:
- Re: Get path for install service
- From: Willy Denoyette [MVP]
- Re: Get path for install service
- From: Ignacio Machin \( .NET/ C# MVP \)
- Re: Get path for install service
- Prev by Date: Different backgroundcolor depending on value in datagrid
- Next by Date: RE: generics and reflection
- Previous by thread: Different backgroundcolor depending on value in datagrid
- Next by thread: Re: Get path for install service
- Index(es):
Relevant Pages
|