What is the best way to get the executing exe’s path in .NET?

I usually access the directory that contains my application’s .exe with:

System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);

Leave a Comment