|
|
|||||||
[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:to delete all current connections.delprinterconnection(*) [ 26. October 2003, 23:44: Message edited by: sealeopard ] |
||||||||
|
|
|||||||
And if so will that delete a local connection as well? God, I hope you say "Yes", then "no". |
||||||||
|
|
|||||||
Well... the answer is Yes and No. 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. |
||||||||
|
|
|||||||
See for example the DelPrinterConnections() UDF. |
||||||||
|
|
|||||||
All clients are Wk2 so delprinterconnection("") will work just fine. Thanks again guys J |