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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get the path of the exe file?

Status
Not open for further replies.

AgentM

MIS
Jun 6, 2001
387
US
How do I get the path from which my application is executing?

Thank you
 
StartupPath does not include the exe name, just the folder path it is in. Perhaps thats what he was looking for, I'm not sure.
 
Try this one:
Code:
// Retrieve assembly path 
string assemblyPath = Assembly.GetExecutingAssembly().Location;
obislavu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top