#214008 - 2021-08-18 02:59 PM
AddPrinterConnection and DelPrinterConnection Syntax
|
Robdutoit
Hey THIS is FUN
Registered: 2012-03-27
Posts: 363
Loc: London, England
|
If AddPrinterConnection("\\vleerbeer\hp laserjet 4") = 0
? "Added printer connection...."
Endif
If DelPrinterConnection ("hplaser4") = 0
? "Deleted printer connection...."
Endif
I propose that DelPrinterConnection should have the same syntax as AddPrinterConnection, namely DelPrinterConnection ("\\vleerbeer\hp laserjet 4") = 0
Two Reasons:
Consistency between commands. I myself have made the mistake of forgetting that DelPrinterConnection must only be Printer Share Name and not \\ServerName\ShareName as seen in Adding a printer command. I think the two commands should be consistent as consistency makes it easy to use a system.
Same Printer Share Name Deletion. If you move an existing printer to a new Print Server and want to retain the same Printer Share Name, Kixtart provides no mechanism to remove hplaser4 just from old print server and not new print server as well.
I can't speak for other people, but I have many years ago moved to simple printer names such as Accounts Black Photocopier and Accounts Colour Photocopier. Therefore I want to retain these simple names when moving a printer from an obsolete print server to a new Server being rolled out.
So I would like to propose that the DelPrinterConnection Kixtart function be updated to achieve these two goals. Thank you.
|
Top
|
|
|
|
#214119 - 2022-04-29 08:32 PM
Re: AddPrinterConnection and DelPrinterConnection Syntax
[Re: Robdutoit]
|
Allen
KiX Supporter
Registered: 2003-04-19
Posts: 4549
Loc: USA
|
Meanwhile, I'll continue to use the PrinterConnection UDF.
In all seriousness, I seem to remember Les... who hasn't been on here in ages, preaching that the share name and the printer name should always be the same.
|
Top
|
|
|
|
#214159 - 2022-09-02 10:24 AM
Re: AddPrinterConnection and DelPrinterConnection Syntax
[Re: Glenn Barnas]
|
Varro18
Just in Town
Registered: 2022-07-20
Posts: 3
Loc: 美国
|
DELETED-SPAM User has been banned.
Edited by Glenn Barnas (2022-09-02 02:55 PM)
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 370 anonymous users online.
|
|
|