này hoạt động:Tại sao Process.Start ("cmd.exe", quy trình); không làm việc?
Process.Start("control", "/name Microsoft.DevicesAndPrinters");
Nhưng điều này không: (Nó chỉ mở ra một cửa sổ lệnh.)
ProcessStartInfo info = new ProcessStartInfo("cmd.exe");
info.Arguments = "control /name Microsoft.DevicesAndPrinters";
Process.Start(info);
Tại sao?
(Vâng, tôi biết họ không giống nhau. Nhưng điều thứ hai "nên" làm việc.)
Nó hoạt động tốt cho tôi. Lỗi của bạn là gì? –
@ SonerGönül Không có lỗi. Như tôi đã viết - nó chỉ mở ra một dấu nhắc lệnh. Nó sẽ mở DevicesAndPrinters. (Bạn có nghĩa là nó _that_ cho bạn?) – ispiro