Does anyone know why I'm having problems passing these parameters to RUNDLL32? Thanks -James
Set WshShell = WScript.CreateObject("WScript.Shell"
Set WshNetwork = WScript.CreateObject("WScript.Network"
Dim strPrinterName
Dim strPrinterDriver
Dim strPrinterPort
Dim strPrinterInf
Dim AddPrinter
strPrinterName = "SERO-LJ1 - Servicing Department HP LaserJet 4000"
strPrinterDriver = "HP LaserJet 4000 Series PCL"
strPrinterPort = "SERO-LJ1"
strPrinterInf = "C:\WINDOWS\INF\ntprint.inf"
AddPrinter = WshShell.Run ("RUNDLL32 PRINTUI.DLL,PrintUIEntry /b strPrinterName /m strPrinterDriver /r strPrinterPort"
Set WshShell = WScript.CreateObject("WScript.Shell"
Set WshNetwork = WScript.CreateObject("WScript.Network"
Dim strPrinterName
Dim strPrinterDriver
Dim strPrinterPort
Dim strPrinterInf
Dim AddPrinter
strPrinterName = "SERO-LJ1 - Servicing Department HP LaserJet 4000"
strPrinterDriver = "HP LaserJet 4000 Series PCL"
strPrinterPort = "SERO-LJ1"
strPrinterInf = "C:\WINDOWS\INF\ntprint.inf"
AddPrinter = WshShell.Run ("RUNDLL32 PRINTUI.DLL,PrintUIEntry /b strPrinterName /m strPrinterDriver /r strPrinterPort"