Wenn Sie eine exe von Ihrem C# Anwendung auszuführen und die Ausgabe bekommen von ihm, dann können Sie den Code unten verwenden
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "PATH TO YOUR FILE";
p.StartInfo.UseShellExecute = false;
p.StartInfo.Arguments = metalType + " " + graphHeight + " " + graphWidth;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.EnableRaisingEvents = true;
p.Start();
svgText = p.StandardOutput.ReadToEnd();
using(StreamReader s = p.StandardError)
{
string error = s.ReadToEnd();
p.WaitForExit(20000);
}
Sie forgete nicht p.EnableRaisingEvents schreiben = true;
Bitte geben Sie genauer an, was Sie tatsächlich versuchen – Patel
mögliche Duplikate von [C# Prozessausgabe während des Laufens erhalten] (http://stackoverflow.com/questions/11994610/c-sharp-get-process-output- während dem Rennen) –