.net CF-以编程方式启动资源管理器 [英] .net cf - launch explorer programmatically

查看:91
本文介绍了.net CF-以编程方式启动资源管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从.Net CF Window应用程序以编程方式启动资源管理器。但是它抛出了win32异常。我在台式机.Net版本中使用了相同类型的代码,并且始终有效。
(我正在使用Windows CE 5和.Net CF 3.5)

I am trying to launch explorer programmatically from my .Net CF Window application. But its throwing win32 exception. I have used same kind of code in desktop .Net version, and it always worked. (I am using Windows CE 5 and .Net CF 3.5 )

以下代码引发Win32异常,

Following code throws Win32 Exception,

Process.Start("\\", null);

不幸的是,我正在使用如下代码:-(

Unfortunately, I am using the code like this :-(

try
{ Process.Start("\\", null); }
catch { }


推荐答案

也许您应该给它一个程序名称来启动?这样的事情很可能会产生成功:

Maybe you should give it a program name to start? "\" is not an application. Something like this is probably more likely to yield success:

Process.Start("\\windows\\explorer.exe", null); 

这篇关于.net CF-以编程方式启动资源管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆