Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jan 4 '13 at 10:04

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

add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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.