k, now as there are code tags...
can understand why you said you are not that good coder.

to be honest, I would drop that code above totally and sit down.
draw it on paper what you actually want.
I think what you are doing here is making it harder than it really is.
I bet your code should be something like:
Code:

if ingroup("_mygroup1")
use S: "\\fs1\groupdrive"
endif
if ingroup("_mygroup2")
use J: "\\fs2\groupdrive"
endif
if ingroup("_mygroup3")
use N: "\\fs3\groupdrive"
endif



well, at least that's how it reads in your explanations.
_________________________
!

download KiXnet