How to retrieve output from an external runed command?

Sep 4 2007 9:35 AM

Hi,

I have the following code to run a dos command e.g dir:

strCmdLine = " /p";
System.Diagnostics.
Process.Start("dir", strCmdLine);

How du i recieve the putput from the dir command?


Answers (2)