Skip to content

Instantly share code, notes, and snippets.

View msugakov's full-sized avatar

Misha Sugakov msugakov

View GitHub Profile
public static int ExecuteProcess(
string fileName,
string arguments,
int timeout,
out string standardOutput,
out string standardError)
{
int exitCode;
var standardOutputBuilder = new StringBuilder();
@msugakov
msugakov / a.cs
Created April 27, 2014 19:13
C# program that starts process and combines its standart output and standard error in one stream
using System;
using System.Diagnostics;
using System.IO;
using System.Threading.Tasks;
class App
{
public static int ExecuteProcess(
string fileName,
string arguments,