title: Launching process in C# Without Distracting Console Window
body: <p>I figure out how to launch a process. But my problem now is the console window (in this case 7z) pops up frontmost blocking my vision and removing my focus interrupting my sentence or w/e i am doing every few seconds. Its extremely annoying, how do i prevent that from happening. I thought CreateNoWindow solves that but it didnt.</p>
  
  <p>NOTE: sometimes the console needs user input (replace file or not). So hiding it completely may be a problems a well.</p>
  
  <p>This is my current code.</p>
  
  <pre><code>void doSomething(...)
  {
      myProcess.StartInfo.FileName = ...;
      myProcess.StartInfo.Arguments = ...;
      myProcess.StartInfo.CreateNoWindow = true;
      myProcess.Start();
      myProcess.WaitForExit();
  }
  </code></pre>