printing - How can I install a printer driver from an inf, then set up a printer using said driver in vbscript -
I am working on a script which requires setting up a Xerox Pascar printer using the PostScript driver. Computers are currently PCL drivers on them (although printers are not yet set on them.) I want to install a PS driver using the specified INF, and after install the printer installed using the provided driver (Do not use the PCL driver accidentally.) How can I do this in VBScript? Example:
Here's how to do this:
Edit: < / Strong> For local printers, make the following changes to the script
oPort.PortName = "LPT1:" Opera.PorttyTip = 3 " and Remove oPort.HostAddress line
Comments
Post a Comment