Technology Made Simple
Thursday February 9th 2012

Q&A Monday: USB Printer in DOS

Question:

I currently have a legacy software at my current job that runs in DOS and have printed to a printer that was connected via parallel cable.  Recently that printer has bit the dust and I bought a new USB printer to replace it, but now the program wont print, but the printer works in Windows, please help.

Answer:

This is a common problem with legacy DOS applications in the current environment.  When I’ve recently purchased printers all of them fell into two camps, USB only or USB and Wireless.  The problem is that DOS programs can’t see any of these ports, you need to print via the LPT ports.  Luckily it’s really easy to map an USB port to LPT1

  1. Install the printer like you normally would
  2. Share the printer out
  3. Click the start button
  4. type “cmd” to enter the command prompt (type without the “”)
  5. type “NET USE LPT1: \\[Computer Name]\[Printer] /PERSISTENT:YES”
    1. Please replace [Computer Name] with your computer name
    2. Please replace [Printer] with the shared printer name
  6. Test your printer

This will look at the USB printer like a network printer and then tell your computer than this network printer is LPT1, which is a printer port that DOS programs will recognize and you’ll be able to print again.

——————————————————————————————–
If  you have any questions that you want Jim to answer, from business servers to home computers, drop him a line at
me@jimguckin.com, and he’ll try to answer your question.  Check back every Monday for a new Question and Answer session, and during the rest of the week for other technical insights.

Related posts:

  1. Windows Printer Pooling
  2. Q&A Monday: Increase Simultaneous Downloads
  3. Q&A Monday: Block Sites from Computer
  4. Effectively Erasing Files
  5. Top 5: Most overlooked configuration items

Leave a Reply