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

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
looney
Posts: 1
Joined: 27 Oct 2018 06:56

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

#1 Post by looney » 27 Oct 2018 07:05

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

penpen
Expert
Posts: 1991
Joined: 23 Jun 2013 06:15
Location: Germany

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

#2 Post by penpen » 29 Oct 2018 18:06

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

Post Reply