111,092
社区成员




try
{
ProcessStartInfo startInfo = new ProcessStartInfo(this.abCall);
string str = string.Format(this.abcallStringfile, mobf, file);
startInfo.Arguments = str;
startInfo.CreateNoWindow = true;
startInfo.RedirectStandardOutput = true;
startInfo.RedirectStandardInput = true;
startInfo.UseShellExecute = false;
Process process = Process.Start(startInfo);
StreamReader standardOutput = process.StandardOutput;
standardOutput.ReadLine();
while (!standardOutput.EndOfStream)
{
standardOutput.ReadLine();
}
process.WaitForExit();
process.Close();
standardOutput.Close();
}
catch (Exception exception)
{
this.EventLog.WriteEntry("Sequence =>" + file + "=>" + exception.Message);
}
就是 Process process = Process.Start(startInfo);运行后,会产生异常