会员
周边
新闻
博问
闪存
众包
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
慎独,主敬,求仁,习劳
If you live each day as if it was your last, someday you’ll most certainly be right
博客园
首页
新随笔
联系
订阅
管理
07 2010 档案
(C#)获取项目程序路径的10种方法
摘要:1. 获取当前进程的完整路径,包含文件名(进程名)。this.GetType().Assembly.Location;返回格式: X:\xxx\xxx\xxx.exe2. 获取新的 Process 组件并将其与当前活动的进程关联的主模块的完整路径,包含文件名(进程名)。System.Diagnostics.Process.GetCurrentProcess().MainModule.FileNam...
阅读全文
posted @
2010-07-07 09:33
yoolo wu
阅读(856)
评论(0)
推荐(1)
公告