Unsolved

This post is more than 5 years old

1 Message

8422

February 28th, 2004 18:00

USB Printer from Cmd prompt

I have some Turbo Pascal programs written for DOS.  They work just fine on my (dying) printer connected to a parallel port (LPT1).  My new printer is connected to a USB port (USB001).  I cannot get the program to recognize the new printer.  If the old printer is turned on, it prints there whether I refer to the printer as LPT1 or PRN.  I'd appreciate any ideas.  I tried:  Assign(f,'USB001') and nothing happened.

--Bob

4.4K Posts

February 28th, 2004 19:00

According to a Google Groups thread I found searching for xp redirect printing usb, this works:

I have a USB printer. I was able to print to it by doing the following:

Share the printer on the network (Start - Printers & Faxes - rt-click on
the printer, select Sharing, enter a share name)

Map LPT1 (or LPT2, 3, 4) to the printer share in a cmd window
C:\ net use lpt1 \\computername\printersharename /persistent:yes


Jim
No Events found!

Top