Actually you may want to
Code:

for $x=0 to ubound($DirArray)
$Group = 'TNT\' + $dir
If InGroup($Group)
MapDrive ...
$x=ubound($DirArray)+1
EndIf
next



This would keep the rest of the group checks from taking place once a match is found.
_________________________
Home page: http://www.kixhelp.com/hb/