Results 1 to 4 of 4

Thread: How 2 write to an existing DOS-Box?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Germany
    Posts
    1
    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

  2. #2
    Lively Member
    Join Date
    Nov 1999
    Location
    Cincinnati, OH
    Posts
    66
    You need to make you vb program a console app instead of a windows app

  3. #3
    Frenzied Member macai's Avatar
    Join Date
    Jul 2001
    Location
    Napanoch NY
    Posts
    1,228
    Originally posted by aaudette
    You need to make you vb program a console app instead of a windows app
    How would you do this?
    Luke

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width