private void button1_Click(object sender, EventArgs e)
        {
            char[] buffer = new char[1024];           char[] buffer1 = new char[1024]; 
            Process p = new Process();
            p.StartInfo.FileName = "cmd.exe";
            p.StartInfo.UseShellExecute = false;
            p.StartInfo.RedirectStandardInput = true;
            p.StartInfo.RedirectStandardOutput = true;
            p.StartInfo.RedirectStandardError = true;
            p.StartInfo.CreateNoWindow = true;
            p.Start();
            string info;
            p.StandardInput.WriteLine("D:");
                
                p.StandardOutput.Read(buffer, 0, 1024);
                p.StandardInput.WriteLine("xxxx");
                p.StandardOutput.Read(buffer, 0, 1024);
                p.StandardInput.WriteLine("xxxxx");
                
            p.StandardOutput.Read(buffer, 0, 1024);
            
            p.StandardInput.WriteLine("xxxxxxxxx");                        p.StandardOutput.Read(buffer1,0,1024);
        }最后一个命令本来是下载东西,然后有一个进度,为什么执行后得不到我要的结果。直接跳出,buffer1里面没我要的结果