Du har mulighed for at gøre flg.:
Metode 1 (AddPrinterConnection):
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddPrinterConnection "LPT1", "\\Server\Print1"
Metode 2 (AddWindowsPrinterConnection):
Syntax:
Windows NT/Windows 2000:
object.AddWindowsPrinterConnection(strPrinterPath)
Windows 95/98:
object.AddWindowsPrinterConnection(strPrinterPath, strDriverName[,strPort])
Code:
Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\printserv\DefaultPrinter"
PrinterDriver = "Lexmark Optra S 1650"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
Håber det kan hjælpe dig.