How to read data from a COM port using a batch file?

Is there a DOS / Batch command that can be used to read from a COM port?

I tried to find this, but could not find a solution.

+6
command-line windows batch-file serial-port
source share
2 answers

To read some information from the COM port, you can try the following command:

type COM{n} 

To send information to the COM port, use the following command:

 echo some text > COM{n} 
+9
source share

To send binary data to a COM port, use copy / B, for example. copy / B data.bin COM1

0
source share

All Articles