I'm looking for help on how to create a .bat file that will send a .txt file to print. The .txt file needs to contain the code to open a cash drawer that is connected to a USB receipt printer. Esentially I want to be able to open the cash drawer by clicking on the .bat file without actually printing anything.
I have created a CashDrawer.bat file that contains the code; start /min notepad /P Open.txt
The open.txt file contains the open code for the cash drawer i.e. 27,112,0,50,250. I have tried it as
CHRS$(27) + CHRS$(112) + CHRS$(0) + CHRS$(50) + CHRS$(250) and x�2 (Ascii). But neither works. It just prints as if it were text.
Any help on this is appreciated.