Process无法隐藏运行的窗口?代码如下?
string sysroot = System.Environment.SystemDirectory;
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo = new System.Diagnostics.ProcessStartInfo(sysroot + "\\msiexec.exe", "/x {60050BB5-E7A2-4879-8E4D-677D4D3EE2F3} /qr");
p.StartInfo.CreateNoWindow = true;
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
p.Start();
Process
隐藏窗口
--------------------编程问答--------------------
试试这个
string sysroot = System.Environment.SystemDirectory;
ProcessStartInfo info = new ProcessStartInfo();
info.FileName = sysroot + "\\msiexec.exe";
info.Arguments = "/x {60050BB5-E7A2-4879-8E4D-677D4D3EE2F3} /qr";
info.UseShellExecute = false;
info.WindowStyle = ProcessWindowStyle.Hidden;
info.CreateNoWindow = true;
Process.Start(info);
补充:.NET技术 , C#