问题描述
Fastboot' getvar all
返回富文本。
这是我的代码:
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();
然而,富文本总是空的。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)