Page 1 of 1 1
Topic Options
#126730 - 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,

#126731 - 2004-09-15 04:28 PM Re: Multiple groups
Lonkero Administrator Offline
KiX Master Guru

Registered: 2001-06-05
Posts: 22298
Loc: OK
go with 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

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.

download KiXnet

#126732 - 2004-09-19 11:04 PM Re: Multiple groups
Sealeopard Offline
KiX Master

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
You'd also need to map to different drive letters, e.g.

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

There are two types of vessels, submarines and targets.

Page 1 of 1 1

Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 37 anonymous users online.
Newest Members
FlyHorton, mschwj, Barchester, Evgeniy, kvanacker
17498 Registered Users

Generated in 0.027 seconds in which 0.01 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google: