Erik,

Thank you very very much for this script and for your detailed reply.

Most of the printers are HPs, with one Kyocera and one Epson. Hopefully this means that most if not all of the printers can be changed using a script!

One question I did have - is there a way to change the script so that if a user doesn't use all of the printers that are on the network, they won't be added in? The way I read the script is that for each printer in prtshare.ini the script will attempt to delete the old share name (even if it doesn't exist) and then add in the new one.

I had a go at using an If statement in place of While $Pos > 0 to make the substitution only for existing printers but failed dismally!

[This message has been edited by mteal (edited 24 January 2001).]