Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

windows service problem

Status
Not open for further replies.

drey8

Programmer
Aug 31, 2004
17
US
I a windows application when i want to find the path my executable is in i use:
System.Windows.Forms.Application.StartupPath;

but in a service i do not have access to "Application".
does any one knows how to get to the path?
i have a xml schema i need to read in my executable path.

thank you
drey
 
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top