How to send file over serial port in Windows Command Prompt How to send file over serial port in Windows Command Prompt windows windows

How to send file over serial port in Windows Command Prompt


This works for me to send a binary file to an Arduino :

mode COM21 BAUD=115200 PARITY=n DATA=8copy yourfile.txt \\.\COM21

Notice the \\.\ which is mandatory for port numbers >= 10, and can be used too for port numbers 1-9.


You need to specify /B for binary file after the .zip file (or whatever else it is) as well as at the end of the command line. e.g. COPY ABinary.File /B COM1 /B otherwise it will stop at the first non-text ASCII character.

Try using Hyperterminal at the receiving end and Transfer > Capture Text