C#打開資料夾(指定路徑和啟動檔案總管)
C#打開資料夾(指定路徑和啟動檔案總管)
string path = System.Windows.Forms.Application.StartupPath;//取得當下系統執行位置 System.Diagnostics.Process.Start(path); |
C#打開資料夾(指定路徑和啟動檔案總管)
string path = System.Windows.Forms.Application.StartupPath;//取得當下系統執行位置 System.Diagnostics.Process.Start(path); |
One thought on “C#打開資料夾(指定路徑和啟動檔案總管)”
//public static string m_StrSysPath = System.Windows.Forms.Application.StartupPath;// .net 4X - Forms
//public static string m_StrSysPath = AppDomain.CurrentDomain.BaseDirectory;// .net 4X - Console
public static string m_StrSysPath = Directory.GetCurrentDirectory()+"\\"; //通用寫法