Tuesday, April 1, 2014

Hide console window when using processor class in c#

 

          
psi = new ProcessStartInfo("exe path"));
psi.CreateNoWindow = true;
psi.UseShellExecute = false;
process = System.Diagnostics.Process.Start(psi);
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;
process.WaitForExit();