Link to home
Start Free TrialLog in
Avatar of jasimon9
jasimon9Flag for United States of America

asked on

Printing from Command Prompt to USB device

I have an old DOS program that I still need to use. Up until now I have printed from the program by directing printer output to the lpt1 port.

Now I have a USB printer that I would like to print to with this program. However, when I try to direct it to USB001 (the port that is listed in the printer's properties), the DOS program's print output is directed to a file called USB001, instead of capturing and directing the output to the printer port.

How can I get this DOS program to print to the printer on the USB001 port?
Avatar of _
_
Flag of Bahamas image

I far as I know, you will have to save it to a file, and have the OS print it out


You can see if you can find a DOS USB driver (if there is such a thing), that you have to make the DOS program use.

Does the BIOS have a Legacy USB option? That might help.

What OS you are using, and how you are running this DOS program, could give us a better idea.
ASKER CERTIFIED SOLUTION
Avatar of mysticaldan
mysticaldan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jasimon9

ASKER

I forgot to mention that I had also tried PRN and it does not work either.

Don't know what you mean by "running it under a Windows DOS prompt" as that is the only way DOS programs can run in XP as far as I know. So probably I don't know what you mean.

None of my comments above matter anyway -- because the 4th suggestion works. I put a "net use" statement in the batch file that invokes the program, and it works!
Glad to hear it is working. And I learned something new.    : )