• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 322
  • Last Modified:

copy to COM in cmd prompt

Hi,

I'm trying to send files to a thermal printer via RS232.  In the manual, it says i can just send these command files to the printer via dos copy with the /b binary switch.  My printer is on COM3..  what is the syntax for copying to a COM port?  i can't figure it out..


thanks - Trevor
0
trevorhartman
Asked:
trevorhartman
  • 3
  • 2
2 Solutions
 
sweatbeastCommented:
copy filename > com3: /b
0
 
r-kCommented:
<quote>
copy filename > com3: /b
</quote>

I assume you really meant:

 copy filename com3: /b
0
 
trevorhartmanAuthor Commented:
thanks all.... when i copy a file to the printer is it supposed to print?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
trevorhartmanAuthor Commented:
it says 1 file(s) copied, but i was expecting it to print..
0
 
r-kCommented:
The most likely problem is that the baud rate (or handshaking protocol) is not matching.

Do you know what baud rate the printer is expecting?

If not, try the following command from the command prompt before using the above Copy command:

> mode com3: 9600,n,8,1
> copy... etc.

Also, make sure you have the proper cable (there are at least two types, pins 2 and 3 are crossed over, or not).

Also, create a very short text file with notepad, say "temp.txt", and try printing that first:

> copy temp.txt com3:

This may be obvious, but are you sure that COM3 is the port your printer is connected to? Most PC's just have 1 or 2 serial ports.
0
 
trevorhartmanAuthor Commented:
great, thanks for your help, i got it working
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now