Skip to content

Instantly share code, notes, and snippets.

@puncha
puncha / RunShellCommand
Created May 22, 2014 09:51
Run Shell Command and watch its output
try
{
Process process = new Process();
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.FileName = "cmd";
process.StartInfo.Arguments = "/C " + command;
process.StartInfo.CreateNoWindow = true;
process.StartInfo.WorkingDirectory = "Something";
process.OutputDataReceived += (sender, e) =>
@puncha
puncha / JsonUtil
Last active August 29, 2015 14:00
JSON Utility
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization.Json;
using System.Text;
namespace AcadCIAutoDeploy.Utils
{
public static class JsonUtil
{