关于智能设备的应用,如何获取当前路径?

zlps 2006-02-20 12:40:05
注意:是智能设备的应用~ 语言是C#
API也可以~ 赫赫,谢谢了~~
...全文
145 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zlps 2006-02-20
  • 打赏
  • 举报
回复
谢谢!解决!
saucer 2006-02-20
  • 打赏
  • 举报
回复
I believe the Compact Framework doesn't support Environment.CurrentDirectory, but if you can do with where the assembly is, you might want to try

System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase

or

System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)

or similar methods

110,538

社区成员

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

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

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