ShellExecute equivalent in .NET

*爱你&永不变心* 提交于 2019-11-26 15:31:53

Process.Start.

Note that advanced uses (printing etc) require using a ProcessStartInfo and setting the Verb property.

System.Diagnostics.Process.Start.

I bet you had trouble finding it because it is in the System.Diagnostics namespace. "Diagnostics"? Usually with 20 years experience one thing you get good at is guessing at what something will be called in a new API/language, but this one tricked me.

Cyril Gupta

Did you try System.Diagnostics.Process.Start() function... It's more or less similar to ShellExecute. You can open exes, documents. I haven't checked printing yet, Marc has told you how already.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!