title: C# Reading Output From Batch file
body: <p>Please help me with this</p>
  
             
  
  <pre><code>Process myProcess = new Process();
  
  ProcessStartInfo myProcessStartInfo = new ProcessStartInfo(batchfilelocation);
  myProcessStartInfo.UseShellExecute = false;
  myProcessStartInfo.RedirectStandardOutput = true;
  
  myProcess.StartInfo = myProcessStartInfo;
  myProcess.Start();
  
  StreamReader myStreamReader = myProcess.StandardOutput;
  
  // Read the standard output of the spawned process.
  string concatenatedString = null;
  
  concatenatedString += myStreamReader.ReadToEnd();
  
  listBox1.Text = listBox1.Text + concatenatedString;
  
  myProcess.Close();
  </code></pre>
  
  <p>I need help with this What do i put for </p>
  
  <p><code>ProcessStartInfo myProcessStartInfo = new ProcessStartInfo(batchfilelocation);</code></p>