using System.Reflection;
Assembly . GetEntryAssembly() . Location;
// or
Application . ExecutablePath;
Path . GetDirectoryName( Application . ExecutablePath) + @"\Temp" ;