Tôi bắt đầu một ứng dụng Console thông qua ProcessStartInfo và process.Start(). Tôi muốn giấu cửa sổ đen. Dưới đây là mã của tôi:Làm cách nào để bắt đầu Quy trình bị ẩn?
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);
bất kỳ giải pháp cuối cùng nào có mẫu mã nguồn đầy đủ hoạt động về nó? CreateNoWindow = true? – Kiquenet
có thể trùng lặp của [Ẩn cửa sổ bảng điều khiển từ Process.Start C#] (http://stackoverflow.com/questions/5377423/hide-console-window-from-process-start-c-sharp) – sirdank