First of all.. Welcome to the board.

Second.. Where is your ENDSELECT? And.. For this simple of a check, why are your using this when and IF..ENDIF would do it?

Code:

DO
$group = EnumGroup($index)
$group = Ucase($group)
$index = $index + 1
IF $group=@domain+"\SECRETARIAT"
USE $groupelist[$groupeindex] "\\"+$fileserver+"\scrt$"
ENDIF
UNTIL len($group)=0



Kent


Edited by kdyer (2004-06-25 04:28 PM)
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's