Gets the base directory of the program.
System.AppDomain.CurrentDomain.BaseDirectory
Gets the full path of the module, including the file name
System.Diagnostics.Process.GetCurrentProcess (). Mainmodule.filename
Get andSetThe fully qualified directory of the current directory (the directory from which the process starts).
System.Environment.CurrentDirectory
Gets the current working directory of the application,Note that the working directory can be changed, not the directory where the program resides。
System.IO.Directory.GetCurrentDirectory ()
Gets and sets the name of the directory that contains the application.
System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase
Gets the path to the executable file that launched the application.
System.Windows.Forms.Application.StartupPath
Gets the path and file name of the executable file that launched the application
System.Windows.Forms.Application.ExecutablePath
Get the various path acquisition methods in C #