**DONOTDELETE**
(Lurker)
2004-09-15 04:23 PM
Multiple groups

Hi guys, trying to do a bit of admin work whilst of administrator is away so please bare with me....

I have a group of users that belong to a group nw2_finance and users that belong to a group nw2_adv.

The script at the moment does an if in group nw2_finance map p:\.....etc and if in group nw2_adv map to P:\....

Some of these users belong in both groups and I was wondering how you script such groupings?? This is fairly urgent. I plan to get into kix but need this asap.

Thanks for your help guys,


LonkeroAdministrator
(KiX Master Guru)
2004-09-15 04:28 PM
Re: Multiple groups

go with select:

Code:
 
select
case ingroup("this") and ingroup("that")
map to this and that
case ingroup("this")
map to this
case ingroup("that")
map to that
case 1
all the rest map to nothing :P
endselect



select is exclusive, if the first one (with both groups) matches, none of the others are checked.
if not, the next one is tested and so on.


Sealeopard
(KiX Master)
2004-09-19 11:04 PM
Re: Multiple groups

You'd also need to map to different drive letters, e.g.
Code:

if ingroup('a')
use x: '\\serber\sharea'
endif
if ingroup('b')
use y: '\\serber\shareb'
endif