redirect any results in command prompt to richtext box

Posted by Kasun on Stack Overflow See other posts from Stack Overflow or by Kasun
Published on 2010-06-16T16:34:27Z Indexed on 2010/06/16 16:42 UTC
Read the original article Hit count: 208

Filed under:

Hi all,

I need to redirect any results in command prompt to richtext box. Can any one provide me the necessary steps. This is how i start my command prompt.

ProcessStartInfo psi = new ProcessStartInfo
                {
                    FileName = "cmd",
                    Arguments = @"/k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat""",
                };
                Process.Start(psi);

© Stack Overflow or respective owner

Related posts about c#