Home > Blockchain >  How to print .txt file containing esc/pos commands using command prompt in windows?
How to print .txt file containing esc/pos commands using command prompt in windows?

Time:10-19

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.

  • Related