Batch file or VisualBasic file to send to USB port
I need to write either a simple batch file or VisualBasic exe to send to the USB port to open a cash drawer
The syntax is something like OpenDrawer 1 "Star TSP700 Raster Printer"
I have written similar files in VisualBasic for Com ports which work eg:
Private Sub Form_Load()
' OPEN COM1 FOR OUTPUT
Open "com1" For Output As #1
' POP CASH DRAWER
Print #1, Chr$(7)
' CLOSE THE COM1 PORT
but they do not work with USB
Can anyone help me out please?