我win32exception was unhandled
在这部分的课堂上使用它时出错
Process dip = new Process();
dip.StartInfo.FileName = @"C:\Windows\System32\diskpart.exe";
dip.StartInfo.RedirectStandardInput = true;
dip.StartInfo.RedirectStandardOutput = true;
dip.StartInfo.CreateNoWindow = true;
dip.StartInfo.UseShellExecute = false;
dip.Start();
dip.StandardInput.WriteLine("list disk");
dip.StandardInput.Flush();
dip.StandardInput.Close();
dip.WaitForExit();
程序dip.Start();
暂停,我看到了那个错误。我怎样才能解决这个问题?请帮忙!