title: How can I prevent C# WPF application starting other app twice?
body: <p>I have a problem in making a C# app; i use <code>proc.Start();</code> as starting an other app. The problem is that this method runs specified app twice. I looked a lot into Web and I didn't find a good answer. The code snippet:</p>
  
  <pre><code>using (Process proc = Process.Start(BotProcess))
  {
      StatusLabel.Content = "Starting...";
      proc.OutputDataReceived += new System.Diagnostics.DataReceivedEventHandler(process_OutputDataReceived);
      proc.ErrorDataReceived += new System.Diagnostics.DataReceivedEventHandler(process_ErrorDataReceived);
      proc.Start();
      StatusLabel.Content = "Running";
      proc.BeginOutputReadLine();
  }
  </code></pre>
  
  <p>When it's executed, in Task Manager i see 2 processes of specified instances using <code>proc.Start()</code> in the app. How can I fix that?</p>