My problem is somewhat similar to JLMartinez's. I too have a script that loads very sluggish.
True we've got a lot of "if ingroup" statements. I will put some parts of it here for you to see. Any comment on what it is supposed to do is given with each part of code. I will only put parrts here, most of it is the same.

 Code:
;Versie			: 2.14
;Datum			: 19-09-2008
;Laatste wijziging 	: Adobeupdater disabled Clear out lines used no more
;Door  			: Ed
;

if @dos=("4.10") goto 98 else goto normal

;----------------------------------------------

:98
; run win98.bat
call "98.kix" 
goto end

;----------------------------

:normal
;SETCONSOLE("HIDE")
$start="@time"
$ver="2.13"
$dos="@dos"

;----------------------------

setconsole("hide")
SETTIME "\\AS-07"

$ASERVER="AS-01"
$BSERVER="AS-02"
$CSERVER="AS-03"
$DSERVER="AS-04"
$ESERVER="AS-05"
$FSERVER="AS-06"
$GSERVER="AS-07"
$HSERVER="AS-08"
$ISERVER="AS-09"
$JSERVER="AS-10"
$KSERVER="ATS-01"
$LSERVER="ATS-02"

;Adobe Updater  switch off ---------------------------

	Call "Adobe.kix"

;Home Mapping X ---------------------------------------

	USE x: /d
	USE x: "\\$ASERVER\Home$\@USERID"

;groups mappings-------------------------------

	IF INGROUP("U_USER_ADMINIST")
		USE H: /d
		USE H: "\\$ASERVER\GROEP\ADMINIST"
	ENDIF

	IF INGROUP("U_MAN_ADMINIST")
		USE H: /d
		USE H: "\\$ASERVER\GROEP\ADMINIST"
	ENDIF

	IF INGROUP("U_USER_APPBEHEER")
		USE J: /d
		USE J: "\\$ASERVER\GROEP\APPBEHEER"
		USE K: /d
		USE K: "\\$ASERVER\GROEP\ADMINIST"
	ENDIF


	IF INGROUP("U_USER_AUTOMAT")
		USE H: /d
		USE H: "\\$ASERVER\GROEP\AUTOMAT"
		USE S: /d
		USE S: "\\$ASERVER\DEV"
	ENDIF 


First part: Comment on version and recent changes, first check is done on OS, wich fires a totally different script. This is done because otherwise some of the mappings could not be made. If you're on an XP machine it skips to :normal, connects X: to your homeshare, and starts making group connections, based on group membership. Where possible multiple mappings for one group are bundled.

For printer connections a different script is launched like this:
 Code:
;Printers---------------------------

;Nieuwe printer script aanroepen ---

call "08printers.kix"

;Nieuwe printer script aanroepen ---

;Printers---------------------------


 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
 

This happens for about 30 printers, each with minimum 2 queues.

This system does have its advantages, we transfer users from one printer to another by just putting them from one group into another.

Mart told me to get rid of the gotos and batchfiles. I'd like to know if there is a better way for that?
_________________________
Still thinking about a good signature