Page 1 of 1 1
Topic Options
#47310 - 2003-10-26 01:14 AM delprinterconnection question
jacks73 Offline
Getting the hang of it

Registered: 2003-04-23
Posts: 58
[Moderator (Sealeopard): Moved thread from 'Scripts' to 'Starters' forum due to lack of script in body]

Hey kids,

Here's a quicky. Can one use wildcards in delprinterconnection()? to delete all networked printers on a wk2/XP system?
ie:
code:
 delprinterconnection(*) 

to delete all current connections.

[ 26. October 2003, 23:44: Message edited by: sealeopard ]

Top
#47311 - 2003-10-26 01:20 AM Re: delprinterconnection question
jacks73 Offline
Getting the hang of it

Registered: 2003-04-23
Posts: 58
And if so will that delete a local connection as well?

God, I hope you say "Yes", then "no".

Top
#47312 - 2003-10-26 02:02 AM Re: delprinterconnection question
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well... the answer is Yes and No. [Frown]
DelPrinterConnection("") will work on 2K but not on XP. Time will tell if 4.22 Gold will work on XP.

Oh, And it will not work on local printers. For what you want, you need to trawl through the registry. There are several UDFs posted that you should look at.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#47313 - 2003-10-26 11:51 PM Re: delprinterconnection question
Sealeopard Offline
KiX Master
*****

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

Top
#47314 - 2003-10-27 08:53 PM Re: delprinterconnection question
jacks73 Offline
Getting the hang of it

Registered: 2003-04-23
Posts: 58
All clients are Wk2 so

delprinterconnection("")

will work just fine. Thanks again guys

J

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 326 anonymous users online.
Newest Members
Praveer, Ollero, rayyo, Foxlicht, DonChild
17742 Registered Users

Generated in 0.046 seconds in which 0.026 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