Guest User

Service

a guest
Feb 11th, 2015
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. //The wrapper process is launched from the service like this:
  2.  
  3. Process externalProcess = new Process
  4.             {
  5.                 StartInfo = { UseShellExecute = false, RedirectStandardOutput = true, RedirectStandardError = false, FileName = "child.exe" }
  6.             };
  7.  
  8. //and then later on, the output is grabbed with:
  9.  
  10. string result = externalProcess.StandardOutput.ReadToEnd().Trim();
Advertisement
Add Comment
Please, Sign In to add comment