The first code I tried was:

if addprinterconnection("\\servername\printername") = 0
? "Added Printer Connection..."
endif

And a few vaiation of the above.
Thanks