1. 代码形式
tStandardOutput = true;
startInfo.RedirectStandardError = true;
startInfo.UseShellExecute =false;
startInfo.Verb = "RunAs";
Process process = newProcess();
process.StartInfo = startInfo;
process.Start();
tStandardOutput = true;
startInfo.RedirectStandardError = true;
startInfo.UseShellExecute =false;
startInfo.Verb = "RunAs";
Process process = newProcess();
process.StartInfo = startInfo;
process.Start();