Using Command.com. You need to set the command.com
shortcut (or a copy of it that you run instead of command.com (and its a PIF file - look
at it in DOS)) to "CLOSE WINDOW ON EXIT"
and "RUN AS A WINDOW".
; assume Dos window called "MS-DOS"
RunShell("command.com","","c:\",@NORMAL,@NOWAIT)
SendKeysTo("MS-DOS","echo off~")
SendKeysTo("MS-DOS","cls~")
; then for each message you want to send to the screen,
msg = "message to send to the screen"
SendKeysTo("MS-DOS","- %msg%~")
; when done the job
SendKeysTo("MS-DOS","exit~")
; to close the Dos box
The trick is to send each line to the command line, but as parameters to the -.com file.
Each line shows up with a "- " before it, a small price to pay. -.com is simply the
assembly code "return" function, a 1-byte code.