我开始通过的ProcessStartInfo和的Process.Start控制台应用程序()。我想隐藏黑色的窗户。这里是我的代码:如何启动进程隐藏?
string output = "";
//Setup the Process with the ProcessStartInfo class
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "C:\\WINNT\\system32\\cmd.exe";
startInfo.UseShellExecute = false;
startInfo.RedirectStandardOutput = true;
//Start the process
Process proc = Process.Start(startInfo);
完整的源代码示例工作任何有关它的最终解决方案? CreateNoWindow = true? [从的Process.Start C#隐藏控制台窗口]的 – Kiquenet
可能重复(http://stackoverflow.com/questions/5377423/hide-console-window-from-process-start-c-sharp) – sirdank