Reply to thread

Something like this maybe? [SPOILER="C# code"][PHP]   Process p = new Process();

   // Redirect the output stream of the child process.

   p.StartInfo.UseShellExecute = false;

   p.StartInfo.RedirectStandardOutput = true;

   p.StartInfo.FileName = "child.exe";

   p.StartInfo.Arguments = "/?";

   p.Start();

   // Do not wait for the child process to exit before

   // reading to the end of its redirected error stream.

   // p.WaitForExit();

   // Read the error stream first and then wait.

   string output = p.StandardOutput.ReadToEnd();

   p.WaitForExit();[/PHP][/SPOILER]


Top


Are you 18 or older?

This website requires you to be 18 years of age or older. Please verify your age to view the content, or click Exit to leave.