//Gets the base directory of the program. System.AppDomain.CurrentDomain.BaseDirectory//Gets the full path of the module. System.Diagnostics.Process.GetCurrentProcess (). Mainmodule.filename//Gets and sets the 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. System.IO.Directory.GetCurrentDirectory ()//Gets and sets the name of the directory that includes the application. System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase//Gets the path to the executable file that launched the application. System.Windows.Forms.Application.StartupPath//Get the path and file name of the executable file that launched the application System.Windows.Forms.Application.ExecutablePath
string Path = System.IO. messagebox . Show ( "build complete! File path in" +path);