how to get phyiscal path of windows service using .net?
Posted
by Krishna
on Stack Overflow
See other posts from Stack Overflow
or by Krishna
Published on 2010-04-28T10:23:01Z
Indexed on
2010/04/28
10:33 UTC
Read the original article
Hit count: 337
I have to get the absolute path of a windows service in a .Net Admin application. I am using ServiceController of .Net as shown below.
ServiceController serviceController = new ServiceController(serviceName);
But I don't see any property here to get the absolute path of the .exe of the service. Is there anyway to get this programmatically.
© Stack Overflow or respective owner