i want to read the data from console(cmd) i tried this code
compiler.StartInfo.RedirectStandardOutput = true;
compiler.Start();
compiler.StandardOutput.ReadToEnd();
but its not working
i want to read the data from console(cmd) i tried this code
compiler.StartInfo.RedirectStandardOutput = true;
compiler.Start();
compiler.StandardOutput.ReadToEnd();
but its not working
try this
Process compiler = new Process();
compiler.StartInfo.FileName = "SOME.exe";
compiler.StartInfo.Arguments = "SOME ARG";
compiler.StartInfo.UseShellExecute = false;
compiler.StartInfo.RedirectStandardOutput = true;
compiler.Start();
var result=compiler.StandardOutput.ReadToEnd();
compiler.WaitForExit();