How to read data from COM port using batch file?

2019-04-28 23:44发布

问题:

Is there a DOS/ Batch command which can be used for reading from the COM port?

I tried to look for that but didn't find solution.

回答1:

For reading some information from COM port you can try next command:

type COM{n}

For sending info to COM port use next command:

echo some text > COM{n}