![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^5: Raw Data to Printer on Win XPby BrowserUk (Pope) |
on Sep 30, 2004 at 14:58 UTC ( #395367=note: print w/replies, xml ) | Need Help?? |
As I said, I don't have a usb printer, so I cannot test he theory. However, I belive that usb printers are basically serial printers eg. COMn:-like. I do know that you can redirect LPT1 to COMn:
So, if usb are (or present themselves to the system as) serial ports, then it is entirely possible to re-route LPT1 to a usb printer. The OP chose to set his usb printer to masquarade as LPT1 directly. Personally I would have chosen to have it set as a COM1:, then, should I ever attach a second printer to a serial port or another usb, I could set that to COM2: and chose which of the two my CLI apps wrote to by using the MODE command above. I've had this set up on networked systems with half a dozen different local and network printers and it make life quite convenient.
In Section
Seekers of Perl Wisdom
|
|