【发布时间】:2015-06-30 16:58:42
【问题描述】:
在this answer 中,作者@Abel 建议在Process.Start 不起作用时使用ShellExecute。
我什么时候会使用ShellExecute - 我从来没有遇到过Process.Start 不起作用的情况?
此外,使用ShellExecute 与Process.Start 相比有什么优势吗?
【问题讨论】:
-
ShellExecute 是一个 Windows API 函数。在其他环境中不会有。
-
因为他不了解它,因此盲目地认为它具有神奇的力量。