Reading Output from Shell Command

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Ok, basically this is my problem. I'm building a console app to call a dos program. So i'm using the Shell command to call the program, now depending on what happens, I want to read the output that this program returns. I'm just missing the steps here. I know that I can set the Shell command to an integer, but this only returns a 0 to me telling me that it executed, not what is being returned to the console by that application. Is there a way to find out this information?

Thanks!

--------------------------------
From: Kevin Mansel

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>HMrdIkohokioRR4woWbZSQ==</Id>
.


Quantcast