在命令提示符下将打印机添加到本地端口


0

我想将带有自定义驱动程序的打印机添加到本地端口而不是打印机端口。我尝试了以下命令rundll32 printui.dll,PrintUIEntry / if / b“Test Printer”/fg:\Backup\queueASP\custom.INF / r“PrintDriver:”/ m“ASPSample(Optra L Plus PS)”但它说港口不详。

Answers:


0

根据MSDN

/ F应与UNC路径一起使用:

/ F [file]指定使用/ f [file]指定的.inf文件所依赖的.inf文件的UNC路径和名称。

尝试将INF文件保存在%windir%\ inf \下


谢谢你的回复/fg:\Backup\queueASP\custom.INF工作正常。但这是错误的端口名称。

0

驱动程序名称必须完全相同,默认端口的名称末尾有一个冒号。我看过的例子有这个冒号,所以我的错是端口是一个自定义端口,最后没有冒号。“所以确保驱动程序名称是准确的”

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.