Print using usb Port in Dos
Assuming you want this directly from MS-DOS: According to the MS-DOS compatible printers documentation USB printers will NOT work unless the printer can be connected via parallel port too.
DOS does not know USB printing, but a USB port can be redirected in the same way as a network port (NET USE LPT1 \PC-Name\PrinterName).
Although the answer is no I'd give this a deeper testing. That would require USBASPI.SYS, or a similar universal file to access USB under MS-DOS. Then theres the need for the .sys compatible with the printer (like PRINTER.SYS). Then add them in config.sys: DeviceHigh=USBASPI.SYS /v /w /e DeviceHigh=PRINTER.SYS Then I'd probably need the printer equivalent of MSCDEX.EXE which I don't know to exist.
If you want this from under any version of windows (printing from a DOS app) it is possible and there are many applications that can do that.
Related videos on Youtube
![nick zoum](https://i.stack.imgur.com/ncB92.png?s=256&g=1)
nick zoum
The only programmer that doesn't drink coffee. JS Enthusiast (Browser, Node, Electron and whatever else you may find) Some of my most voted questions: Add custom typings file in a JavaScript VSCode project Proxy substitue for ES5 Some of my most useful answers (primarily opinion based): Add custom typings file to a JavaScript VSCode project Parsing and running a mathematical equation in JavaScript Running asynchronous operations in JavaScript The UMD Design Pattern in JavaScript Removing all instances of a class using Vanilla JS Creating and using a JFrame in Java Implementing the Singleton design pattern in Java Why do both [] == true and ![] == true evaluate to false?
Updated on September 18, 2022Comments
-
nick zoum almost 2 years
I am trying to (hard) print a file in Dos using a printer that is connected via
USB Port
.Is there any way to do so?
-
Admin over 7 yearswhen you say
command line
you mean no OS is installed in your machine other than the DOS? If that is so, then I'm wondering even if your printer would be detected by the system! -
Admin over 7 yearsWhat drivers are you using? Which Dos? FreeDOS actually does have USB drivers (including printers, according to the description), but that's not something you find installed out-of-the-box.
-