How do I find the application\'s path in a console application?
In Windows Forms, I can use Application.StartupPath to find the current path, but this d
Application.StartupPath
Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName) Is the only one that has worked for me in every case I have tried.
Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName)