According to the comments above the actual code, one would have to assume that $newserver and $newprinter would contain the server and printer names fo the new printer share.
_________________________
There are two types of vessels, submarines and targets.