Page 1 of 1 1
Topic Options
#126730 - 2004-09-15 04:23 PM Multiple groups
Anonymous
Unregistered


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,

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

Registered: 2001-06-05
Posts: 22346
Loc: OK
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.
_________________________
!

download KiXnet

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

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
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

_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 259 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

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

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org