Solved

Sending an escape sequence to a printer

Posted on 1997-11-22
3
631 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
Comment Utility
Edited text of question
0
 
LVL 5

Expert Comment

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

Accepted Solution

by:
busuka earned 100 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is about my first experience with programming Arduino.
Stuck in voice control mode on your Amazon Firestick?  Here is how to turn it off!!!
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 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

7 Experts available now in Live!

Get 1:1 Help Now