WshNetwork.AddWindowsPrinterConnection

MAP a Network (remote) Printer

Syntax 
      myObject.AddWindowsPrinterConnection(strLocalName UNC_Printer_Name)


Example

   Dim net
   Set net = CreateObject("WScript.Network")    
   net.AddWindowsPrinterConnection "\\ServerName\PrinterName"


Related commands
:

Printer, add printer - WshNetwork.AddPrinterConnection

Equivalent Windows NT command:

NET - Manage network resources



Back to the Top

Simon Sheppard
SS64.com