The small example I provided simply updated the printer - if you know where the old printer is, and the names are the same, that logic updates server with newserver. You still need to save and then re-apply the original default printer.

Shane posted the GetDefaultPrinter function, basically reading a registry value and pulling out a specific part of the result. That logic should read and save the default printer, get the current printer, delete that, change the server name and connect to that printer, then reset the default. His logic is just a bit more complex than my Replace(data,old,new) method but should still work just fine. Make sure you include all of his logic, including the function logic.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D