如何获取智能设备应用程序中应用程序的路径?
我正在用 C# 开发智能设备应用程序。我想要我的应用程序的确切路径。我的应用程序驻留在我的计算机上,位置为 F:/MobileAppl/ManagedAppl。
所以我想在智能设备应用程序中使用这条路径。
请确保.net框架的所有功能在.net紧凑框架中不起作用。
您能给我提供解决上述问题的代码或链接吗?
I am develpoing smart device application in C#. I want the exact path of my application. My application resides on my machine at F:/MobileAppl/ManagedAppl.
So I want this path in smart device application.
Please make sure that all the functions of .net framework does not work in .net compact framework.
Can you provide me the code or link through which i can resolve the above issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这应该适用于 Windows 应用程序和移动应用程序
链接文本
This should work well for both windows application and mobile application
link text
此代码不会返回正确的路径。
我的应用程序路径是D:/Test/MobilApplication。
在执行上面的代码时,它仅显示“//Program files//MobilApplication”,如下所示。
this code will not return correct path .
My Application path is D:/Test/MobilApplication.
While executing above code it shows simply "//Program files//MobilApplication" like that.