public static void CreatePDir(string url) { string fileurl = Environment.CurrentDirectory + url; CreateDirectory(fileurl); } public static string GetPDir() { return Environment.CurrentDirectory; } public static string GetBasePDir() { return AppDomain.CurrentDomain.BaseDirectory; } public static string GetCurrentPDir() { return Directory.GetCurrentDirectory(); } //获取或设置包含该应用程序的目录的名称 public static string GetCurrentPExeName() { return AppDomain.CurrentDomain.SetupInformation.ApplicationBase; }