[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1082
  • Last Modified:

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?
0
jasimon9
Asked:
jasimon9
  • 2
1 Solution
 
_Commented:
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.
0
 
mysticaldanCommented:
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 http://www.dosprint.com/ 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 http://support.microsoft.com/kb/259939/EN-US/ 

Dan
0
 
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!
0
 
_Commented:
Glad to hear it is working. And I learned something new.    : )
0

Featured Post

Sign your company up to try the MB 660 headset now

Take control and stay focused in noisy open office environments with the MB 660. By reducing background noise, you can revitalize your office and improve concentration.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now