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
LVL 8
trevorhartmanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
trevorhartmanAuthor Commented:
great, thanks for your help, i got it working
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.