Networking Forums

Networking Forums > Computer Networking > Windows Networking > Printer script error

Reply
Thread Tools Display Modes

Printer script error

 
 
Mervin Williams
Guest
Posts: n/a

 
      04-07-2005, 05:15 PM
Upon running the following script file (printer.vbs), my server throws the
error below. I've verified the the UNC path to the printers is correct, and
that the files names are correct. Please help!

printer.vbs
-----------
Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\umbrella-hou\HP LaserJet 2100 Series"
PrinterDriver = "PrinterDriver"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\umbrella-hou\HP OfficeJet G95"
PrinterDriver = "PrinterDriver"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\umbrella-hou\Lanier 5455 Copier"
PrinterDriver = "PrinterDriver"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\umbrella-hou\Fax"
PrinterDriver = "PrinterDriver"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
WshNetwork.SetDefaultPrinter "\\umbrella-hou\Lanier 5455 Copier"

Windows Script Host: Error
----------------------------
Script: \\UMBRELLA-HOU\NETLOGON\printers.vbs
Line: 4
Char: 1
Error: The filename, directory name, or volume label syntax is incorrect.
Code: 8007007B
Source: (null)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help: VBS script to connect to domain printer from outside the dom JohnBates Windows Networking 5 04-01-2008 07:23 PM
Script Error Diane Lewis Windows Networking 0 05-10-2007 03:07 PM
Specifying script as printer backend loial Linux Networking 4 04-25-2006 08:12 PM
Specyfing script as printer bakend loial Linux Networking 0 04-25-2006 12:06 PM
Rename printer script Reedler Windows Networking 0 06-02-2005 08:12 PM



1 2 3 4 5 6 7 8 9 10 11