Skip to content

Instantly share code, notes, and snippets.

View D3vast8r's full-sized avatar
🤖
Photorealism Is The Future

D3vast8r D3vast8r

🤖
Photorealism Is The Future
View GitHub Profile
@ZacharyPatten
ZacharyPatten / WindowsCmdCommand.cs
Created February 26, 2020 20:28
Example of running commands in Windows from C#
using System;
using System.Diagnostics;
class Program
{
static void Main()
{
WindowsCmdCommand.Run("dir", out string output, out string error);
Console.WriteLine("OUTPUT: " + output);
Console.WriteLine("ERROR: " + error);