#157410 - 2006-02-17 08:42 PM
Re: Printer Creation Script woes
|
Richie19Rich77
Seasoned Scripter
   
Registered: 2002-08-16
Posts: 624
Loc: London, England
|
You have the syntax wrong, AddPrinterConnection and SetDefaultPrinter uses different syntax.
SetDefaultPrinter uses the printer name and not the printer path name, see below.
Quote:
SetDefaultPrinter ("<printer name>")
printer name = the fully qualified name (include the double backslashes and the server name) for the printer to be set as default
Quote:
AddPrinterConnection ("<printerpath>")
printerpath = UNC path to printer name ("\\server\printer name") or share name ("\\server\printer share name")
Thanks
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 388 anonymous users online.
|
|
|