PDA

Click to See Complete Forum and Search --> : How 2 write to an existing DOS-Box?


TSM
Nov 29th, 2000, 03:16 AM
Is there a way to write text messages to the DOS-Box that I use to start a VB program?

I want to use the above mentioned VB program like a DOS-Command-Program without a GUI but with textual feedback or messages.

Also I want to use return codes to handle them in .CMD-Files with IF ERRORLEVEL == ... control statements.


Thanks.

Thomas

aaudette
Dec 5th, 2000, 12:00 PM
You need to make you vb program a console app instead of a windows app

macai
Aug 11th, 2002, 02:06 AM
Originally posted by aaudette
You need to make you vb program a console app instead of a windows app How would you do this?

JoshT
Aug 12th, 2002, 03:46 PM
cmd.exe doesn't have anything to do with DOS, but you want to binary patch your compiled *exe with the mkconsole.exe app and source code hidden in this site:
http://mvps.org/st-software/
You can then send your standard output back to cmd.exe. This patches your program to run as a Win32 Console App rather than a Win32 GUI App, but it still is a windows app.