SparkysHouse
Technical User
The following code works perfectly when run from a .vbs file. How can I utilize this code from a web page form button? Currently, the code errors on the first line.
Set WshNetwork = WScript.CreateObject("WScript.Network"
Thanks in advance.
Mark
Set WshNetwork = WScript.CreateObject("WScript.Network"
Code:
PrinterPath = "\\ServerName\PrinterName"
WshNetwork.AddWindowsPrinterConnection PrinterPath
WshNetwork.SetDefaultPrinter "\\ServerName\PrinterName"
Thanks in advance.
Mark