I basically stole the primapstate code and added a bunch of other functionality to a new function call printerconnection. It really couldn't be easier to move network printer servers. I did this for one of my customers where I had an INI file that read the old name, looked for it, if it found it, read the new name, and then removed and reconnected. The printerconnection function also has the ability to determine if the printer is the default.

See the examples and if you need any help, post your code.

PrinterConnection() -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=203840#Post203840

How to use UDFs -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=81943#Post81943

The rest of the UDFs are here -
http://www.kixtart.org/forums/ubbthreads.php?ubb=postlist&Board=7&page=1