当前位置:编程学习 > C#/ASP.NET >>

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#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,