Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Diagnostics;
- public class Program
- {
- public static void Main()
- {
- ProcessStartInfo ps = new ProcessStartInfo();
- ps.FileName = "dotnet";
- ps.Arguments = "--version";
- ps.RedirectStandardOutput = true;
- ps.UseShellExecute = false;
- var res=Process.Start(ps);
- Console.WriteLine(res.StandardOutput.ReadToEnd());
- }
- }
Add Comment
Please, Sign In to add comment