• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 643
  • Last Modified:

Sending an escape sequence to a printer

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
guni
Asked:
guni
1 Solution
 
guniAuthor Commented:
Edited text of question
0
 
julio011597Commented:
Could you show the code you've written so far?
0
 
busukaCommented:
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

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now