Page 1 of 1

Need some help displaying COM port data and also saving it.

Posted: 27 Oct 2018 07:05
by looney
Hello people,

Its been a while since I've worked on DOS and I seem to have forgotten most of it.

I have a DOS 3.22 laptop on which I wish to display messages that I send to it over serial (COM1) and also save it to disk.

I know

Code: Select all

TYPE COM1
will dispaly the traffic on my screen but I also want it to save to disk.
And if at all possible I also want the laptop to beep at me when it has received a new message :)

How can I do this?


Kind regards,
looney

Re: Need some help displaying COM port data and also saving it.

Posted: 29 Oct 2018 18:06
by penpen
I am unsure, but could it be that file direction is working on DOS 3.22?
I think the BEL character was 0x07, but you probably have to edit that character in your batch file using a hex editor
Replace the string "[BEL]" with the BEL character and the following might help you:

Code: Select all

TYPE COM1 >"File.dat"
echo [BEL]
penpen