see www.gwspikval.com/jooel/UDF

there is primapstate() UDF

with it you can do:
code:
if not primapstate("\\myserver\myprintersshare")
addprinterconnection(...)
endif

_________________________
!

download KiXnet