Process.Start
使用and模拟自动运行 CD(或其他媒体,我猜)的最接近的方法是什么ProcessStartInfo
?
我已经尝试过明显的事情,例如:
// Just opens the folder
Process.Start("F:");
// Ditto
Process.Start(new ProcessStartInfo("F:") {UseShellExecute = true});
// Throws System.ComponentModel.Win32Exception: No application is associated with the specified file for this operation
Process.Start(new ProcessStartInfo("F:") {UseShellExecute = true, Verb = "autorun"});
我显然可以解析autorun.inf
文件以计算出所涉及的可执行文件,但我只是想知道是否有更简单的方法来做到这一点。