If you are trying to print to the printer, why not use VB's built in printer object. Such as printer.print?
because at my workplace the default printer in a network printer, and my application have to print to a local printer on LPT1, witch printer is only for printing barcode labels. and the string to print is a code witch is processed by the label printer.
the print.bat content is:
First things first, please read our posting rules. You have basically "hijacked" someone elses post AND this post is from 2006, ouch. Please start your own thread with the question above.
To your question, you will be making use of the MSComm Control, you will have to tap into your hardware's API's send with the hardware (hopefully), and then get the code to correspond. See the 2 links below with some sample vb6 codes.