Originally Posted By: Tony

....
So for the line of code, I am verifying if the printer is added successfully? Is this better practice than just puting only?

AddPrinterConnection("\\lnx1\hp4000")

Thanks for so much needed info.
Tt


That depends on what you need/want to know. Just adding the printer without knowing if it was actually added could give you some calls from users that do not have the printer(s) they should have. I would change it to the example below.

 Code:
If AddPrinterConnection("\\lnx1\hp4000") <> 0
	;Do something so an admin knows there are problems
	;with connecting printer x for user y.
EndIf
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.