One thought on “C# 抓取程式所在路徑


  1. //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()+"\\"; //通用寫法

jash.liao@qq.com 發表迴響 取消回覆

你的電子郵件位址並不會被公開。 必要欄位標記為 *