Application.StartupPath
using System; using System.Collections.Generic; using System.Windows.Forms; static class MainClass { [STAThread] static void Main() { Console.WriteLine( Application.StartupPath); } }