如果使用
ProcessStartInfo该类,则可以将窗口样式设置为隐藏-
对于控制台(不是GUI)应用程序,必须将CreateNoWindow设置为
true:
System.Diagnostics.ProcessStartInfo start = new System.Diagnostics.ProcessStartInfo();start.FileName = dir + @"Myprocesstostart.exe";start.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; //Hides GUIstart.CreateNoWindow = true; //Hides console



