SamKr
2/4/2016 - 11:06 AM

Returns application's startup path

Returns application's startup path

WinForms:
Path.GetDirectoryName(Application.ExecutablePath);


WPF:
AppDomain.CurrentDomain.BaseDirectory


Console:
string path = new Uri(Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase)).LocalPath;