title: WPF + Showing ouput of bat file in TextBlock
body: <p>I am trying to execute a bat file through my WPF application on a button click.
  I want the output of the batch file to be displayed in a TextBlock(with vertical scroll) of WPF application.</p>
  
  <p>I am able to execute a bat file using Process.Start</p>
  
  <p>Here is my Code</p>
  
  <pre><code>Process process = new Process();
  process.StartInfo.FileName = @"C:\bin\run.bat";
  process.StartInfo.Arguments = @"-X";
  process.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
  process.Start();
  process.WaitForExit();
  </code></pre>
  
  <p>How to proceed further?
  Thanks</p>