title: .Net Core open external terminal
body: <p>I'm migrating batch script to .Net core and I'm trying to open another terminal from current terminal and run a command (I don't need stderr o stout). </p>
  
  <p>With batch only needs this command: <code>start cmd /K gulp</code>. I'm trying to do the same with .Net core but only found the way to run the command inside current terminal. </p>
  
  <pre><code>private static string Run (){
      var result = "";
      try
      {
          ProcessStartInfo startInfo = new ProcessStartInfo();
          startInfo.FileName = "cmd.exe";
          startInfo.Arguments = $"/c \"gulp browserSync\"";
          startInfo.RedirectStandardOutput = true;
          startInfo.RedirectStandardError = true;
          startInfo.UseShellExecute = false;
          startInfo.CreateNoWindow = true;
  
          using (Process process = Process.Start(startInfo))
          {
              result = process.StandardError.ReadToEnd();
              process.WaitForExit();
          }
      }
      catch (Exception Ex)
      {
          Console.WriteLine(Ex.Message);
          Console.ReadKey();
      }
      return result;
  }
  </code></pre>
  
  <p>I'm trying changing this properties in order to open in another terminal:</p>
  
  <pre><code>startInfo.RedirectStandardOutput = false;
  startInfo.RedirectStandardError = false;
  startInfo.UseShellExecute = true;
  </code></pre>
  
  <p>But make an exception: </p>
  
  <blockquote>
    <p>UseShellExecute must always be set to false.</p>
  </blockquote>