Solved

Sending an escape sequence to a printer

Posted on 1997-11-22
3
634 Views
Last Modified: 2008-03-17
Hello, I have troubling in sending an escape sequence to my printer from within a batch-file. I think I have tried many things, like copying it, like echoing it with >, like calling another bat-file to send it, like using command.com to process it etc. The problem is that the escape sequence is not received like that on the printer. If I do it from a regular DOS-prompt, I don't have the problem, but I want to be able to do it automatically from within autoexec.bat. Can you help me??? Thanks Gudmund.
NB: I'm using this for telling a Canon printer to emulate another printer (ProXL24E printer). I can do it from a dos-prompt, but why can't I do it in autoexec.bat???
0
Comment
Question by:guni
3 Comments
 

Author Comment

by:guni
ID: 1016703
Edited text of question
0
 
LVL 5

Expert Comment

by:julio011597
ID: 1016704
Could you show the code you've written so far?
0
 
LVL 7

Accepted Solution

by:
busuka earned 100 total points
ID: 1016705
The solution is VERY simple:
create file with escape sequences inside, say PRNEMUL.COD
in your batch file put command:
copy /b PRNEMUL.COD PRN
Note: your can use LPT1 instead of PRN.
ECHO command will not work anyway.
0

Featured Post

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Rasberry PI is a low cost piece of hardware that you can have a lot of fun with through experimenting and building/working on projects like media players, running a low cost computer, build data loggers etc. - see: https://www.raspberrypi.org
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now