1. 程式人生 > >C# 獲取exe的上一級目錄

C# 獲取exe的上一級目錄

DirectoryInfo path_exe = new DirectoryInfo(Application.StartupPath); //exe目錄
String path = path_exe.Parent.Parent.FullName; //上兩級的目錄