Fastboot' getvar all
return to richtext.
This is my code:
Process p = new Process();
p.StartInfo.FileName = "fastboot.exe";
p.StartInfo.Arguments = "getvar all";
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.UseShellExecute = false;
p.StartInfo.StandardOutputEncoding = System.Text.Encoding.ASCII;
p.Start();
StreamReader d = p.StandardOutput;
richTextBox1.Text = d.ReadToEnd();
richTextBox1.Text = p.StandardOutput.ReadToEnd();
p.WaitForExit();
However, the richtext is always empty.