Folks, I am just trying to print ESC/pos commands from the .txt file using windows command prompt now let me explain what I tried so far
I have connected my Epson Tm-m30 printer using a virtual port driver I can able to print the .txt file using the following command:
print /d:COM1 'file path'
Now my question as it is ESC/pos printer needs to print the ESC/pos commands like a paper cut, barcode printing, etc, when am trying to paste the ESC/pos commands in .txt file it is print as it is not as ESC/pos command the following ESC/pos commands am trying to print:
\x1B\x40
\x1D(k\x0d\x00\x30\x50\x30TEST PRINT
\x1D(k\x03\x00\x30\x51\x
But while printing it is printing as its looks like above not as ESC commands can somehow tell me how to solve this? how to print ESC/pos commands using a .txt file ?
Thanks in advance
CodePudding user response:
There are no commands built into Windows by default, so the following options are possible.
Use the tools distributed by EPSON
Send Data Tool
Issuing Receipts with BarcodesUse a free tool published by someone somewhere
Create your own with a script tool such as PowerShell
about_Special_CharactersMake your own with C /C#/VB etc.
Regex.Unescape(String) Method
Regular Expression Language - Quick ReferenceCreate a file with binary data instead of text and copy it to COM1 with the
copy /b
command