Page 1 of 1 1
Topic Options
#109807 - 2003-12-08 03:07 PM DelPrinterConnection Wildcard
MichaelWassell Offline
Fresh Scripter

Registered: 2003-11-17
Posts: 32
Hello Everyone;

I am going to be searching through scripts to try and find the answer to this but if someone could answer it would be greatly appreciated

Do wildcards work with the DelPrinterConnection command for kix scripts?

For example;

DelPrinterConnection * (would delete all mapped printers)

Or following the syntax of the example would it be DelPrinterConnection (*)?

Top
#109808 - 2003-12-08 03:47 PM Re: DelPrinterConnection Wildcard
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Simple answer is NO.

You can pass a blank to delete all printers but there is a bug in KiX that prevents this from working on XP. Hmmm... has anyone tested it on 4.22 to see if Ruud fixed it yet?

$rc = DelPrinterConnection('')
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#109809 - 2003-12-08 03:49 PM Re: DelPrinterConnection Wildcard
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
BTW, that is 2 single quotes (') and not one double quote ("). I think there is a UDF written that does it as well and overcomes the XP issue.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#109810 - 2003-12-08 03:58 PM Re: DelPrinterConnection Wildcard
MichaelWassell Offline
Fresh Scripter

Registered: 2003-11-17
Posts: 32
Thanks for your reply Les. It doesn't seem as though the wildcard works on Kixtart 4.22 either, or "passing a blank" to the command as you had mentioned. Is that expected or am I possibly doing something wrong?

For testing purposes I am only creating a temporary script and adding the command in the script without using any variable to store it in and it doesn't seem to be working, although I am using XP which may be the cause.

I will look into the UDF library to see what functions are available also.

Top
#109811 - 2003-12-08 04:02 PM Re: DelPrinterConnection Wildcard
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
See for example in the UDF library: DelPrinterConnections()
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 847 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.051 seconds in which 0.023 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