I know I'm not posting this in the right forum, but I'm gonna give it a try anyway.
Can anyone tell me what is wrong with this printer script?
It delivers this error messageSet WshNetwork = WScript.CreateObject("WScript.Network") PrinterPath = "\\VARDA\HPK850" WshNetwork.AddWindowsPrinterConnection PrinterPath PrinterPath = "\\VARDA\HP5700" WshNetwork.AddWindowsPrinterConnection PrinterPath PrinterPath = "\\VARDA\HP1606" WshNetwork.AddWindowsPrinterConnection PrinterPath WshNetwork.SetDefaultPrinter PrinterPath WScript.quit
Script: C:\Docum~\Administrator.VARDA\Desktop\ken_prentarar.vbs
Line: 3
Char: 1
Error: The filename, directory name, or volume label syntax is incorrect
Code: 8007007B
Source: (null)
Last edited by romperstomper; 09-29-2011 at 07:09 AM. Reason: add code tags
Is that definitely the correct share name for the printer?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks