Compact Framework的程序当前路径如何获得?

songbird 2005-03-31 10:34:41
如题。
...全文
82 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
iGray 2005-04-06
  • 打赏
  • 举报
回复
System.IO.Directory.GetCurrentDirectory();
DarkSchneider 2005-04-05
  • 打赏
  • 举报
回复
string GetAppPath()
{ //get the path of this project on the device
string FileName=System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase;
FileName=FileName.Substring ( 0,FileName.LastIndexOf("\\"));
return FileName;
}
AllenTing 2005-04-05
  • 打赏
  • 举报
回复
http://blog.csdn.net/webclerk/archive/2004/09/07/96389.aspx
songbird 2005-04-05
  • 打赏
  • 举报
回复
up
songbird 2005-04-05
  • 打赏
  • 举报
回复
ding

110,571

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧