string codeBase = Assembly.GetExecutingAssembly().CodeBase;
int pos = codeBase.LastIndexOf('/');
string fAppPath = codeBase.Substring(0, pos + 1);
int pos = codeBase.LastIndexOf('/');
string fAppPath = codeBase.Substring(0, pos + 1);
获取应用程序的当前工作目录。
public static string GetCurrentDirectory();
返回值
包含当前工作目录的路径的字符串。
详细看帮助吧