Discussion:
Printer USB port
(too old to reply)
kim
2005-03-10 09:02:00 UTC
Permalink
Hello

By now, I write

open "LPT1" for output as #30
width #30,255
....

But, I buy a new printer without paral.lel port, it has a USB port only.
I can't write the command "LPT1" .How can I do it. Also I can't make "Type
AAAA > USB"

Thank you

Quim
RobertVA
2005-03-10 23:13:47 UTC
Permalink
Post by kim
Hello
By now, I write
open "LPT1" for output as #30
width #30,255
....
But, I buy a new printer without paral.lel port, it has a USB port only.
I can't write the command "LPT1" .How can I do it. Also I can't make "Type
AAAA > USB"
Thank you
Quim
Possibly because LPT1: is the parralel port, but your printer is
connected to the USB port. You woun't be able to use most USB printers
from a DOS program unless the program is running in a virtual machine or
command line window.

Many of the printers sold today require some version of Windows, Linux
or Mac O/S. One of the ways printer manufacturer's have been able to get
their manufacturing costs so low is the elimination of much of the
circuitry in the printer's control electronics. Code in the O/S's
printer driver has replaced much of the function of the printer
electronics. The VERY primative BIOS functions that MS DOS uses just
aern't smart enough.
Dick Grier
2005-03-16 20:34:06 UTC
Permalink
In general, you cannot access USB devices from DOS. The USB device requires
a device driver from the manufacturer, and manufacturers will not support an
OS that isn't current (read: Windows or Linux, in general).

Dick
--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
Loading...