I have a program which I have used for many years which manages the printing of text files according to control statements within the text file.
For instance, it will print headings at the top of each page, change lines per inch, change characters per inch, set margins, change from portrait to landscape, etc. It does this by writing control strings directly to the printer, addressing the printer as LPT1, LPT2, or LPT3.
Now I need to use it to address a printer connected to a USB port, but I don't know how to address it.
Printer properties tell me that the printer is connected to port "DOT4_001", but when I attempt to write to that port, it simply creates a file in the current directory with that name and does not write to the printer. Similarly, I cannot figure out how to write to that printer from a DOS window with the simple command "type file.txt >xxxx", although substituting "LPT1:" for "xxxx" works with a printer connected to a parallel port.
So my question is "How do I directly address a printer which is connected to a USB port?"