jacks73
(Getting the hang of it)
2003-10-26 01:14 AM
delprinterconnection question

[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 ]


jacks73
(Getting the hang of it)
2003-10-26 01:20 AM
Re: delprinterconnection question

And if so will that delete a local connection as well?

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


Les
(KiX Master)
2003-10-26 02:02 AM
Re: delprinterconnection question

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.


Sealeopard
(KiX Master)
2003-10-26 11:51 PM
Re: delprinterconnection question

See for example the DelPrinterConnections() UDF.

jacks73
(Getting the hang of it)
2003-10-27 08:53 PM
Re: delprinterconnection question

All clients are Wk2 so

delprinterconnection("")

will work just fine. Thanks again guys

J