General use
String p=appdomain.currentdomain.basedirectory+"\ \ Other";//and others.stringSTR1 =process.getcurrentprocess (). Mainmodule.filename;//gets the file name of the EXE that is currently executing. stringStr2=environment.currentdirectory;//gets and sets the fully qualified path to the current directory (that is, the directory from which the process starts). //Note by definition, if the process is started in the root directory of a local or network drive, the value of this property is the drive name followed by a trailing backslash (such as "C: \"). If the process is started in a subdirectory, the value of this property is the drive and subdirectory path (such as "C:\mySubDirectory") without trailing backslashes. stringStr3=directory.getcurrentdirectory ();//gets the current working directory of the application. stringStr4=appdomain.currentdomain.basedirectory;//gets the base directory that is used by the Assembly resolver to probe assemblies. stringStr5=application.startuppath;//gets the path to the executable file that launched the application, not including the name of the executable file. stringStr6=application.executablepath;//gets the path to the executable file that launched the application, including the name of the executable file. stringStr7=appdomain.currentdomain.setupinformation.applicationbase;//Gets or sets the name of the directory that contains the application
How C # Gets the path to other folders in the project