t*****l 发帖数: 121 | | j*****n 发帖数: 943 | 2 Here is the code
void bool RunExcutable(string CommandFileName, string CommandArgs, string
CommandWorkingDir, out string Message)
{
int exitCode = 0;
bool returnCode = false;
string output = "";
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
//p.StartInfo.RedirectStandardError = true;
p.StartInfo.WorkingDirectory |
|