Windows Mobile 中怎样获得当前应用程序所在路径

it2022-05-27  67

【1】这是 本人的一点 小小的积累,如果对你有所帮助 请留言。。。。。。。

   /// <summary>        /// 获得当前应用程序所在路径        /// </summary>        /// <returns></returns>        static string strConfigFileUrl;        public static void GetDir()        {            string strExeDir = Assembly.GetExecutingAssembly().GetName().CodeBase;  //获得可执行文件的全路径            string strDir = Path.GetDirectoryName(strExeDir);            strConfigFileUrl = Path.Combine(strDir, "EbookConfig\\");        }

转载于:https://www.cnblogs.com/hxycn/archive/2009/11/18/1605251.html

相关资源:数据结构—成绩单生成器

最新回复(0)