博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

08 2012 档案

摘要://获取包含清单的已加载文件的路径或 UNC 位置。 public static string sApplicationPath = Assembly.GetExecutingAssembly ( ).Location; //result: X:\xxx\xxx\xxx.dll (.dll文件所在的目录+.dll文件名) //获取当前进程的完整路径,包含文件名(进程名)。 string str = this.GetType ( ).Assembly.Location; //result: X:\xxx\xxx\xxx.exe (.exe文件所在的目录+.exe文件名) //获取新的 Pro.. 阅读全文

posted @ 2012-08-24 22:38 快乐家++ 阅读(270) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示