T
timburda
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
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