2
Answers

How to retrieve output from an external runed command?

MOrten Kruse

MOrten Kruse

17y
2.3k
1

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)