Path to the executable

Here’s the easiest copy and paste for getting the path to your executable. This works great for regular executables

using System.Reflection;
using System.IO;
private string ExecutablePath
{
get
{
return Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
}
}
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.