Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //The wrapper process is launched from the service like this:
- Process externalProcess = new Process
- {
- StartInfo = { UseShellExecute = false, RedirectStandardOutput = true, RedirectStandardError = false, FileName = "child.exe" }
- };
- //and then later on, the output is grabbed with:
- string result = externalProcess.StandardOutput.ReadToEnd().Trim();
Advertisement
Add Comment
Please, Sign In to add comment