Mapping network printer to LTP1

When wanting to print from old DOS programs, then one is required to attach a printer to LPT1 or LPT2.

It is possible to map a network printer to LPT1 with this command:

net use lpt1: \\computer_name\printer

Note if the mapping fails because of “Access Denied”, then it can be caused by different things:

  • The network permissions for the printer share, doesn’t allow the user to access the printer.
  • The user is not allowed to remap the LPT1 port, this happens if the LPT1 is already mapped to a local port. The solution is to disable the LPT1 port on the motherboard BIOS.

Note the method of mapping a network printer to LPT1 can also be used to map an USB printer. First share the printer, and then map the printer to LPT1.

Note if the DOS program is able to print, but nothing comes out of the printer, then you might have to change the printer properties to TEXT mode.

More Info MS KB163551

Credits GeeksWithBlogs.net