How to start Process hidden?

Solution 1:

The final answer is

 ProcessStartInfo psi = new ProcessStartInfo();
 psi.FileName = ....
 psi.RedirectStandardInput = true;
 psi.RedirectStandardOutput = false;
 psi.Arguments =...
 psi.UseShellExecute = false;

psi.CreateNoWindow = true; // <- key line

Solution 2:

Try This:

startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;

Solution 3:

Try

startInfo.WindowStyle = ProcessWindowStyle.Hidden;

Solution 4:

Process p = new Process();
....
p.StartInfo.CreateNoWindow = true;
p.Start();