在C#中进行shellexecute [英] shellexecute in C#
本文介绍了在C#中进行shellexecute的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
.Net中是否有与API shellexecute相同的功能?
谢谢
Nhan >
推荐答案
Le,Thanh-Nhan,
在帮助中查看Process类。我已经在下面发布了一个样品,用于
。
希望这会有所帮助。
--------- ---------
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName =" cmd.exe";
p.Start();
Le, Thanh-Nhan,
Take a look at the Process class in the help. I have posted a sample for
you below.
Hope this helps.
------------------
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "cmd.exe";
p.Start();
谢谢
Brian Brown <峰; br ******** @ discussions.microsoft.com> schrieb im Newsbeitrag
新闻:B9 ********************************** @ microsof t.com ...
Thanks
"Brian Brown" <Br********@discussions.microsoft.com> schrieb im Newsbeitrag
news:B9**********************************@microsof t.com...
Le,Thanh-Nhan,
请查看帮助中的Process类。我在下面贴了一个样品给你。
希望这会有所帮助。
------------------
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName =" cmd.exe";
p.Start();
Le, Thanh-Nhan,
Take a look at the Process class in the help. I have posted a sample for
you below.
Hope this helps.
------------------
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "cmd.exe";
p.Start();
我尝试过使用System.Diagnostics.Process,但在我的情况下它不起作用。 />
我想打电话给
ShellExecute(0," open"," mailto:in ** @ xxx.com?body=yyy&subject=wwwwww ,0,0,5)
打开标准电子邮件程序...,就像我们点击超链接mailto:in ** @ xxx.com?body=yyy&subject=wwwwww
谢谢
Nhan
" Brian Brown" <峰; br ******** @ discussions.microsoft.com> schrieb im Newsbeitrag新闻:B9 ********************************** @ microsof t.com ...
Hi,
I have tried with System.Diagnostics.Process, but in my case it doesn''t work.
I want to call
ShellExecute(0, "open", "mailto:in**@xxx.com?body=yyy&subject=wwwwww, 0, 0, 5)
to open the standart email program ..., as when we click on the hyperlinks mailto:in**@xxx.com?body=yyy&subject=wwwwww
Thanks
Nhan
"Brian Brown" <Br********@discussions.microsoft.com> schrieb im Newsbeitrag news:B9**********************************@microsof t.com...
Le,Thanh-Nhan,
在帮助中查看Process类。我在下面贴了一个样品给你。
希望这会有所帮助。
------------------
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName =" cmd.exe";
p.Start();
Le, Thanh-Nhan,
Take a look at the Process class in the help. I have posted a sample for
you below.
Hope this helps.
------------------
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "cmd.exe";
p.Start();
这篇关于在C#中进行shellexecute的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文