Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Process p = new Process();
- p.StartInfo.FileName = processName;
- p.StartInfo.UseShellExecute = false;
- p.StartInfo.RedirectStandardOutput = true;
- p.Start();
- string output = p.StandardOutput.ReadToEnd();
- p.WaitForExit();
- Console.WriteLine("\n\nthis is my output \n {0}",output);
Add Comment
Please, Sign In to add comment