Discussion Locked

redirecting LPT3 output

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

In our situation here we have some legacy software running on windows 3.1 .The software was originally written for all post script printing to be done off of LPT3 and sent to a network printer which has worked fine for the last ten years. Now we wish to hang some postscript printers off of LPT1 and print to these instead. However, the code references more than 40 different places where LPT3 is printed to for postscript printing. How can I redirect printing such that all printing to LPT3 comes out on LPT1 without scouring a bunch of outdated source code (Clipper and DBIV) and without buying LPT3 cards?

Thanks,
Paul J. Karlok

7 replies

by simonchan

Please check your PC hardware manual first. Some PCs allow you to configure the LPT setting. In other words, you may set your default LPT port to LPT3 instead of LPT1.

by 115147.455

The problem is that LPT2 and LPT3 are network printers, LPT1 is not. Without forcing me to stop what I'm doing, spend two weeks tracking down every occurance of LPT3: in 50,000 lines of code, I just want to make a quick fix that will work. Thesoftware is written to print postscript to specifically LPT3. Changing the printer to LPT1 will have no effect because the software will print to LPT3.
How can I print to LPT3 and have it come out on LPT1 ?

by don christner

Use the DOS Mode command. I can't remember which port to call out first, but if you go to a DOS prompt and type mode /? it will give you the help info for the mode command.

At a DOS prompt you would type, mode lpt3:=lpt1: and it will then tell you lpt3 redirected to lpt1.

Don

by 115147.455

I type at the dos prompt...

C:\>Mode lpt3:=lpt1:

and get and "Invalid parameter - LPT1:"
response because the command is

MODE =

by wgirid

Hi!
The mode command is (among other things) used for redirecting printer output from parallell to serial port; transfer between parallell ports is not supported, unfortunately. If I remember correctly, LPT ports are given their number by BIOS as it searches for them. If these machines are not quite modern I think you would need to install two new LPT ports to get a physical LPT3 - that might be a challenge what with IRQ etc. If all your machines are on a network and you really want to give each its own printer (on LPT1) but software only wants to print to LPT3, you might of course share each printer and direct printing on machine A to network printer on machine B by using LPT3 as the output port for network printing, (and vice versa) andcreate the required number of such pairs of computers. Not an elegant solution at all though.... but I don't think there is a quick and easy fix to this.
Regards
/WGIRID

by 115147.455

This was the answer I had originally arrived at but was hoping that I didn't have all of the information at my disposal. Thanks for confirming what I already suspected.

Paul

This discussion is closed to new replies.