添加网络打印机.bat

    本文地址:http://tongxinmao.com/Article/Detail/id/316

    bat
    
      添加打印机命令:
    
    rundll32 printui.dll,PrintUIEntry /in /u /z /q /n "\\serverIP\printername"  删除打印机命令:
    
    rundll32 printui.dll,PrintUIEntry /dn /u /z /q /n "\\serverIP\printername"vbs
    
    Set WshNetwork = CreateObject("WScript.Network")
    
    WshNetwork.AddWindowsPrinterConnection "\\serverIP\printername"WshNetwork.SetDefaultPrinter "\\serverIP\printername"


    上一篇:打印机编程
    下一篇:Windows打印机驱动开发