Hi,

I'm trying to create a login script to enumerate a whole bunch of global groups and map drives according to group membership in a loop.

I've got an example of what we've tried so far but with no success.


$scriptroot = @LDRIVE+"scripts"
$Index = 0

DO
$Group = ENUMGROUP( $Index )
If len( $Group ) > 0
$Scriptprefix = Substr( $Group, 1, 3)
If $Scriptprefix = "Glo"
$Scriptname= Substr ($Group, 9, 4)
If $scriptname = "elec"
USE T: \\UKDUMF06\ELECTRA
USE L: \\UKPAVF03\ELECTRA
USE J: \\ESMADA10\ELECTRA
endif
Endif
Endif
$Index = $index + 1
UNTIL Len( $Group ) = 0

$Index = 0

Any help would be greatly appreciated.


Edited by kix_newbie (2004-05-06 01:11 PM)