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?
Who is Participating?
Try directing to PRN instead of LPT1 any other redirection will not work cause the program will take any other redirection to be to a Filename. Only PRN and LPT are reccomeneded to be used for printing.

You might have to use a TSR to redirect any commands to the LPT port to the USB port.

If this doesnt work u might try and run the program from under a Windows DOS prompt cause in that case any redirection to PRN will be automatically directed to the USB printer. You can try it and check.

You can also try which runs under Windows but shud work for you i guess unless ur using true DOS only.

Anotrher way is by networking wherein share your printer, then map the share to lpt1 by typing out net use lpt1: \\pc\xxxx where xxxx is the share name of the printer. You should then be able to print from most DOS apps that support LPT1: printing. However please keep in mind that some DOS apps print direct to lpt port and will not function using the net share command.

Read here also 

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.
jasimon9Author Commented:
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.    : )
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.