Your arguement makes no sense. Regardless which "office" group you test for, the USE command is still the same so you could combine it just like I showed.
You still don't have the code right and are still using @LServer in your G: and H: mappings. You need to put the IF construct at the top and only need to use it once, not several times.
untested Code:
@lserver
If @LServer <> '\\IM'
$LServer = @LServer
Else
$LServer = '\\MS-SRV'
EndIf
use list
USE G: /d
USE H: /d
USE G: $LServer+'\apps'
USE H: $LServer+'\'+@UserID+'$$'
If InGroup('cs-office','ws-office','ms-office')
use I: $LServer+'\common$$'
endif
if ingroup("ms-students")
use I: $LServer+'\classes$$'
endif
if @userid = "smcmorris"
use I: $LServer+'\classes$$'
endif
Edited by Les (2005-01-07 10:56 PM)
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.