Opening a Cash Drawer using JAVA or Batch File
问题 I have a Partner RP-300 receipt printer with a cash drawer connected to it for experimental purposes.It connects to the PC via LPT1. I would like to open the cash drawer by means of a java application or a batch file. Any ideas? EDIT I have found out that the command to open the drawer is ESC p, hex value \x1b\x70\x00, but how do I send that command to the printer using cmd?, I tried putting latter in a text file, then using copy \b file name lpt1, but it just prints the contents of the text