Solved

Sending an escape sequence to a printer

Posted on 1997-11-22
3
637 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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