Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords:
echo {alt-195}>-.comThis will make a 3-byte file called -.com put this file on your path! Note that this must be done in a dos box, and {alt-195} is to hold down the alt key and press the number 195 on the numberic keypad.
; 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 boxThe 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.
Article ID: W12880
Filename: Display Results in a DOS Command Window.txt
File Created: 1999:04:15:16:50:16
Last Updated: 1999:04:15:16:50:16