Guest User

Untitled

a guest
Jan 17th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. using System;
  2. using System.Diagnostics;
  3.  
  4. public class Program
  5. {
  6. public static void Main()
  7. {
  8. ProcessStartInfo ps = new ProcessStartInfo();
  9. ps.FileName = "dotnet";
  10. ps.Arguments = "--version";
  11. ps.RedirectStandardOutput = true;
  12. ps.UseShellExecute = false;
  13. var res=Process.Start(ps);
  14. Console.WriteLine(res.StandardOutput.ReadToEnd());
  15. }
  16. }
Add Comment
Please, Sign In to add comment