Hello,

I am developing an application that needs to "capture" the text that a DOS prompt displays. For example, I am wanting to Shell out to a compiler for assembly language with a command line, and then capture the output to display in my program. I have tried "piping" the output to a file by doing this for example...

"C:\compiler.exe -h" > "C:\test.txt"

This will "pipe" the output to the file "C:\test.txt". This works for some executables, but not for all of them..? I am wanting to find a bullet proof method to doing this so that it will work for all compilers. Is there a way to read a console's output buffers from VB..?

Any examples, thoughts, ideas, or leads to finding this information would be greatly appreciated.

Thanks for your time...


Please visit VB Overdrive at:
http://extreme-vb.net/vboverdrive/