title: Cmd Command (ewfmgr C: -commit) not executed when start it from C# Process
body: <p>When I try to run cmd command 'efwmgr C: -commit' from C#, got empty log file without any information, and when check manually 'ewfmgr C:', got 'Boot Command NO_CMD', so commit not run.</p>
  
  <p>Same code just changed Arguments = "/C chkdsk C:" it runs and works well, inserted whole output into my log.</p>
  
  <p>Method which I used.</p>
  
  <pre><code>public static void StartProcess()
  {
      var procStartInfo = new ProcessStartInfo
      {
          CreateNoWindow = false,
          WindowStyle = ProcessWindowStyle.Normal,
          FileName = "cmd",
          Arguments = "/C ewfmgr C: -commit",
          UseShellExecute = false,
          RedirectStandardOutput = true,
          RedirectStandardInput = true,
          RedirectStandardError = true
      };
  
      var process = new Process { StartInfo = procStartInfo, EnableRaisingEvents = true };
  
      using (StreamWriter writer = new StreamWriter(@"D:\commitFile.txt"))
      {
          process.OutputDataReceived += (sender, e) =&gt;
          {
              writer.WriteLine(e.Data);
          };
  
          process.Start();
          process.BeginOutputReadLine();
          process.WaitForExit();
      }
  }
  </code></pre>
  
  <p>This is the nearly example I found on <a href="https://social.msdn.microsoft.com/Forums/vstudio/en-US/4e014365-8e8f-4f93-998a-156f2e55ebab/how-to-get-and-write-ewf-current-to-text-file-using-c?forum=csharpgeneral" rel="nofollow noreferrer">https://social.msdn.microsoft.com/Forums/vstudio/en-US/4e014365-8e8f-4f93-998a-156f2e55ebab/how-to-get-and-write-ewf-current-to-text-file-using-c?forum=csharpgeneral</a></p>