AddWindowsPrinterConnection with IP Address
Hi,
Thanks in advance, I hope.
I am trying to add network printers based on an IP address rather than a UNC name. So instead of:
strPrinterPath = "\\Server\Printer"
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection strPrinterPath
I would like something like:
strPrinterPath = "192.168.0.100"
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection strPrinterPath
Will this work, or something like it?
Thanks,
mmcdonal
mmcdonal
__________________
mmcdonal
Look it up at: http://wrox.books24x7.com
|