Computer Hope
Microsoft => Microsoft Windows => Windows 3.x/9x/ME => Topic started by: Jackd on June 06, 2010, 11:05:54 PM
-
I would like to create a batch (.bat) file that would output and receive text through one of my computers COM ports. Is this possible?
-
Yes, but it may not do what you want.
Study the MODE command to learn how to set the serial ports.
If you have a dial up modem on the com1 port you would do this:
echo ATZ >com1
Which might not work if you had not already set the parameters with the MODE command.
And you could send the contents of a com port to a file:
copy con1 test.txt
But it may hang if the com port never sends a control Z
Did you have something specific in mind?