View Single Post
  #1 (permalink)  
Old June 14th, 2004, 09:46 AM
mmcdonal mmcdonal is offline
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default 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
Reply With Quote