Guest User

Untitled

a guest
Jun 22nd, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. Process p = new Process();
  2. p.StartInfo.FileName = processName;
  3. p.StartInfo.UseShellExecute = false;
  4. p.StartInfo.RedirectStandardOutput = true;
  5. p.Start();
  6. string output = p.StandardOutput.ReadToEnd();
  7. p.WaitForExit();
  8.  
  9.  
  10. Console.WriteLine("\n\nthis is my output \n {0}",output);
Add Comment
Please, Sign In to add comment