Originally Posted By: Lonkero
hmm...
speed improvements would in your case come from the network load.
as example, instead of addprintercon, you could first check if the printer is already connected, thus removing possible driver download overload.


OK, now there's a thing that could work. Thanks Lonkero! To accomplish a check on existance of a certain connection, it is best to check on the presence of the printerconnection in the registry. I think i'm gonna dive into that one first.
This is how it looks at the moment:
 Code:
	IF INGROUP ("P_arena_101")
	  ADDPRINTERCONNECTION("\\$ASERVER\arena_101_blanco")
	  ADDPRINTERCONNECTION("\\$ASERVER\arena_101_logo")
	  ADDPRINTERCONNECTION("\\$ASERVER\arena_101_A3")
;	  SETDEFAULTPRINTER("\\$ASERVER\arena_101_Blanco")
	ELSE
	  DELPRINTERCONNECTION("\\$ASERVER\arena_101_Blanco")
	  DELPRINTERCONNECTION("\\$ASERVER\arena_101_Logo")
	  DELPRINTERCONNECTION("\\$ASERVER\arena_101_A3")
	ENDIF


Let's just sort out what needs to be there to skip this whole driver installation.
_________________________
Still thinking about a good signature