Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I get my application to read the output from a DOS window.

Status
Not open for further replies.

lcrehan

Programmer
Aug 3, 2000
1
AU
I need my vb application to read the text displayed in a DOS window.&nbsp;&nbsp;The DOS window is created and owned by another non-vb application.&nbsp;&nbsp;I can retrieve the DOS window's handle and have tried using the api function GetWindowText and the Sendmessage function (with the WM_GETTEXT parameter) but these functions just access the window's title.&nbsp;&nbsp;<br><br>I would appreciate any help with this.<br><br>Thanks.
 
You can do this if the other VB app creates a console window (see the Console FAQ in the VB general discussion). If the other VB app simply shells to command.com, the only way I know to do this is using a TSR that writes the contents of video memory (hB800...) to a file that can be read by the VB app. Implementation is well beyond the scope of this forum. <p> <br><a href=mailto: > </a><br><a href= plain black box</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top