Page 1 of 1 1
Topic Options
#149756 - 2005-10-12 12:24 PM DelPrinterConnection Bug?
oneill Offline
Fresh Scripter

Registered: 2005-03-24
Posts: 27
Loc: Australia
Hi All,

I am trying to use the DelPrinterConnection to delete all existing printers by using the following code.

$ = DelPrinterConnection ("")

This is the error code that I get when I use the @Error and @Serror macros.
1801, The printer name is invalid

Someone in the Adminscripteditor forum suggested that it was a bug with kix and windows XP. This seems to work when I test on my workstation, I am running Server 2003, but I have never been able to get it work on XP. I have tried this on serveral different networks, but same result.

I have tried with all version 4 versions of KIX.

any ideas?

oneill3

Top
#149757 - 2005-10-12 01:03 PM Re: DelPrinterConnection Bug?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
try the delprinterconnectionS() UDF in www.kixtart.org/UDF
_________________________
!

download KiXnet

Top
#149758 - 2005-10-12 04:21 PM Re: DelPrinterConnection Bug?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well... I suggested it to him there at http://www.adminscripteditor.com/forum/tm.asp?m=8917 but he declined.

DelPrinterConnection("") is simply broken on XP/W2K3 and nobody but Ruud can fix it. There is no point in going on about it.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#149759 - 2005-10-12 09:06 PM Re: DelPrinterConnection Bug?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
question is, should it work at all.
_________________________
!

download KiXnet

Top
#149760 - 2005-10-12 09:57 PM Re: DelPrinterConnection Bug?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
OK, debatable... but at least the manual should be updated then.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#149761 - 2005-10-13 12:34 AM Re: DelPrinterConnection Bug?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
why so?
_________________________
!

download KiXnet

Top
#149762 - 2005-10-13 12:36 AM Re: DelPrinterConnection Bug?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh, you mean the "nt/2k" part?
_________________________
!

download KiXnet

Top
#149763 - 2005-10-13 01:12 AM Re: DelPrinterConnection Bug?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
No, I mean debating whether or not it is a bug. I never called it a bug. I called it a known issue. You called it broken.

The manual does not purport that the "" parm works on any OS or inversely that it does NOT work on any specific version. I don't remember whether the "" parm was an undocumented unsupported feature but since it worked at one time and since it is fairly common knowledge that it worked, it should be mentioned in the manual.

If Ruud decides that it is not by design and does not want to fix it, it is his prerrogative.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#149764 - 2005-10-13 06:33 AM Re: DelPrinterConnection Bug?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I called it broken?

and not 100% sure about common or even fairly common knowledge.
I didn't know about it but just about 2 years ago when herd of the issue here... from you I think.
and I do know like lots, don't I
_________________________
!

download KiXnet

Top
#149765 - 2005-10-13 02:45 PM Re: DelPrinterConnection Bug?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
It is not the known issue that is common knowledge. It is the fact that using a zero length string deletes all printers that is common knowledge.

And yes, you called it broken in the beta forum.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#149766 - 2005-10-14 04:31 AM Re: DelPrinterConnection Bug?
oneill Offline
Fresh Scripter

Registered: 2005-03-24
Posts: 27
Loc: Australia
Hi Guys,

I didn't want to start a fight

I was posting in the hope that someone would look at getting it fixed.

Thanks.

Top
#149767 - 2005-10-14 04:51 AM Re: DelPrinterConnection Bug?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Hey, Jooel and I like a good fight. The issue has been made known to Ruud for quite some time. I just don't remember what his take was on it and if he intends to make it work.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#149768 - 2005-10-14 05:17 AM Re: DelPrinterConnection Bug?
oneill Offline
Fresh Scripter

Registered: 2005-03-24
Posts: 27
Loc: Australia
I enjoy a good fight, just as long as I'm not involved :P
Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.197 seconds in which 0.151 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org