Solved

Sending an escape sequence to a printer

Posted on 1997-11-22
3
640 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
GPS For Commercial Vehicles 10 76
No Operating System Found 47 88
Rear View Camera 27 53
Business Lenovo Laptops- 2016 or later models 17 34
Stuck in voice control mode on your Amazon Firestick?  Here is how to turn it off!!!
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

752 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