Jump to content

Recommended Posts

Posted

Is there anyway of finding the location of the .exe that is running at runtime (the homepath). Im looking to use a file that stores settings for the program but i dont really want to force the program and the setting file to be put in a set folder. Im guessing that it will have been done before or at least other people will have come across the same problem. So any suggestions?

Guest NeilC_MVP
Posted

[VB]

Dim appPath As String = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase

[C#]

string appPath = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.