在C#中使用ShellExecute [英] Using ShellExecute in C#

查看:409
本文介绍了在C#中使用ShellExecute的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我的C#书都没有处理它。 MSDN似乎没有在C#中提到ShellExecute。搜索答案部分没有给我我想要的答案,找不到一篇文章,开始在C#中使用它。我也试过谷歌搜索问题,没有成功。



键入ShellExecute后调用求助不起作用,因为我显然遗漏了一个使用条款,但我无处可去找出它是什么。



请帮忙。



先谢谢。

Hi All,

None of my books on C# handle it. MSDN does not seem to mention ShellExecute in C#. Searching the answers section did not give me the answer I am looking for, can't find an article that gets one started with using it in C#. I have also tried googling the question, without success.

Calling for help after typing ShellExecute does not work because I have obviously left out a using clause, but nowhere can I find out what it is.

Please help.

Thanks in Advance.

推荐答案

当.NET Framework中有一个非常好的替代方案时,为什么要使用ShellExecute,使用流程 [ ^ ]和 ProcessStartInfo [ ^ ]类?
Why would you use ShellExecute when there's a perfectly good alternative in the .NET Framework, using the Process[^] and ProcessStartInfo[^] classes?


你看过这个链接 [ ^ ]似乎全面。
Did you have a look at this link[^]? Seems comprehensive.


Winexec和ShellExecute比ProcessStartInfo更快
Winexec and ShellExecute are much more faster than ProcessStartInfo!!

这篇关于在C#中使用ShellExecute的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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