Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add a printer with my custom driver to a local port and not a printer port. I tried the following command rundll32 printui.dll,PrintUIEntry /if /b "Test Printer" /f g:\Backup\queueASP\custom.INF /r "PrintDriver:" /m "ASPSample(Optra L Plus PS)" But it says the port is unknown.

share|improve this question

migrated from Jan 4 '13 at 10:04

This question came from our site for professional and enthusiast programmers.

As per MSDN

/F should be used with a UNC path :

/F[file] Specifies the UNC path and name of a .inf file that the .inf file specified with /f[file] depends on.

Try keeping the INF file under %windir%\inf\

share|improve this answer
Thank you for your reply /f g:\Backup\queueASP\custom.INF worked fine. But it was the port name which was wrong. – A J Jan 4 '13 at 7:43

The driver name has to be exactly the same, the default ports have a colon at the end of their names. The examples I viewed had this colon so it was my fault that the port was a custom port and it was not having a colon at the end. "So make sure that the driver name is exact"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.