Is it possible to print on LPT2 with printer Connected COM Port?

Asked By 0 points N/A Posted on -
qa-featured

Is it possible to print on LPT2 with printer Connected COM Port?

I have a POS system running in command prompt which is using the LPT1 to print the original copy of a receipt and LPT2 to print the duplicate of the receipt.

Now, I have a computer with LPT1 and COM2 port. LPT2 is not present, but I am able to connect my printer to COM2 in replacement of the LPT2. How should I reroute the print job in LPT2 going to COM2. Is it possible?

#8

SHARE
Answered By 0 points N/A #81516

Is it possible to print on LPT2 with printer Connected COM Port?

qa-featured

Is it possible to print on LPT2 with printer Connected COM Port?

Yes, it is possible but there are some problems setting the configuration in Microsoft Windows Vista and Microsoft Windows 7. But of course we have the solution for this.

To avoid problems rerouting your LPT2 to COM2 port, you must remove the drivers installed for your printer connected to the COM2 port. Totally un-install the driver of your printer to avoid conflicts re-routing LPT2 to COM2 on Command Prompts.

Although printing directly to the LPT ports and COM ports is able DOS programs without printer drivers, it is using the Spooler of your windows operating system since command line interface integrates into your operating system. That’s the reason why we need to remove the driver of your printer installed on COM2.

You must create a batch file program to re-route your printer. But this batch file should be run before printing. Here’s how, Open your text editor then type the commands below and save your work and name your batch file as LPT2COM2.BAT:

@ECHO OFF

MODE COM2 BAUD=96 PARITY=N DATA=8 STOP=1

MODE LPT2=COM2

To execute the batch file just type LPT2COM2.BAT in your command prompt.

Related Questions