469,610 Members | 1,649 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,610 developers. It's quick & easy.

Getting Windows Service full path

R A
Hi,

I have a Windows Service C# application.
How can I get the full path of the application exe?
Thanks,
Ronen

Nov 15 '05 #1
2 10567
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

"R A" <ro****@hotmail.com> wrote in message
news:eV**************@TK2MSFTNGP10.phx.gbl...
Hi,

I have a Windows Service C# application.
How can I get the full path of the application exe?
Thanks,
Ronen

Nov 15 '05 #2
Is it the path of your service app or some other app that you are trying to
work with?

"R A" <ro****@hotmail.com> wrote in message
news:eV**************@TK2MSFTNGP10.phx.gbl...
Hi,

I have a Windows Service C# application.
How can I get the full path of the application exe?
Thanks,
Ronen

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Buddhi | last post: by
10 posts views Thread by dermot | last post: by
reply views Thread by BruceMcF | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.