Capture the Output of a DOS application

Category:
System/API
Type:
Classes
Difficulty:
Advanced
Author:
Marco Pipino

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
This class capture the outpus of a DOS application via API functions, redirecting the stdOutput pipe and the stdErr pipe of a DOS application from the screen to the pipe that this class create.

You can use this with any DOS application. To use it with a DOS command, type the following into text box:

cmd.exe /c [command], e.g.,

cmd.exe /c dir


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download dosoutputs.zip