这有效:
Process.Start("control", "/name Microsoft.DevicesAndPrinters");
Run Code Online (Sandbox Code Playgroud)
但这不会:(它只是打开一个命令提示符.)
ProcessStartInfo info = new ProcessStartInfo("cmd.exe");
info.Arguments = "control /name Microsoft.DevicesAndPrinters";
Process.Start(info);
Run Code Online (Sandbox Code Playgroud)
为什么?
(是的,我知道他们不一样.但第二个"应该"有效.)