Interacting with a command line program

Hello,

I'm pretty new to c# and i am using .net vs 2005. Basically i have a DOS based program that i need my program to run, pass arguments to, and receive the output from. The black DOS window cannot appear. Is there an easy way of doing this.

Thanks in advance.


Answer this question

Interacting with a command line program

  • Mark Rovendro

    Take a look at Process.StartInfo property.
    http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.startinfo.aspx

  • Interacting with a command line program