EpLibrary.cs.FolderHelper.GetModuleFileDirectory C# (CSharp) Method

GetModuleFileDirectory() public static method

Return only the directory ending with "\" which contains the current executable file
public static GetModuleFileDirectory ( ) : String
return String
        public static String GetModuleFileDirectory()
        {
            String retString = GetModuleFileName();
            return GetPathOnly(retString);
        }

Usage Example

Example #1
0
 /// <summary>
 /// Return the path of the executable
 /// </summary>
 /// <returns>the path of the executable</returns>
 public static string GetApplicationPath()
 {
     //return Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "\\";
     return(FolderHelper.GetModuleFileDirectory());
 }