R R A Aug 6, 2003 #1 Hi, I have a Windows Service C# application. How can I get the full path of the application exe? Thanks, Ronen
Hi, I have a Windows Service C# application. How can I get the full path of the application exe? Thanks, Ronen
C codewriter Aug 6, 2003 #2 Is it the path of your service app or some other app that you are trying to work with?
Q Qiu Zhang Aug 6, 2003 #3 One way you can try is to use Assembly.Location to find out the exe path e.g. Assembly sbl = Assembly.GetAssembly(XXX);//XXX is the type of your services String mpath = sbl.Location; Hope it helps Qiu
One way you can try is to use Assembly.Location to find out the exe path e.g. Assembly sbl = Assembly.GetAssembly(XXX);//XXX is the type of your services String mpath = sbl.Location; Hope it helps Qiu