Skip to content

Instantly share code, notes, and snippets.

Created September 10, 2018 14:03
What would you like to do?
using UnityEditor;
public static class CMD
public static void EchoTEST()
Call("/k echo TEST", false);
private static void Call(string cmd, bool isHide = true)
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
if(isHide) startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
startInfo.Arguments = cmd;
process.StartInfo = startInfo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment