Guest Wavid Posted December 2, 2004 Report Posted December 2, 2004 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 December 3, 2004 Report Posted December 3, 2004 [VB] Dim appPath As String = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase [C#] string appPath = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase
Guest Wavid Posted December 4, 2004 Report Posted December 4, 2004 Thx exactly what i was looking for. Big help :lol:
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now