[Mono-devel-list] Capturing Shell Output: System.Diagnostics.Process

Ben Hill ben at serosoft.com
Wed Feb 2 16:25:27 EST 2005


On Wed, 2005-02-02 at 14:49, Jörg Rosenkranz wrote:
> proc.StartInfo.RedirectStandardOutput = true;
> proc.StartInfo.RedirectStandardError = true;
> 
> ...
> 
> string stdOut = proc.StandardOutput.ReadToEnd();
> string stdErr = proc.StandardError.ReadToEnd();
> 
> HTH,
> Joerg.

Absolutely perfect, thanks! :-)

-- 
ben at serosoft.com - www.seigan.org
GPG Fingerprint: 4309 1C58 5143 AFAC F69E  11CD 76FD 56D4 1223 E387






More information about the Mono-devel-list mailing list