#31120 - 2002-10-21 02:07 PM
Compare an @USERID and an array
|
Flo
Lurker
Registered: 2002-10-21
Posts: 2
Loc: Germany
|
Hi,
Iīm just programming a logon-script which maps the network-drives. My problem: I want to map different drives for each compartment and their user. I made an array like "technic" where every user of the compartment "technical support" is listed. Now I want to check if the user is in this array!!
something like: if @USERID $technic map drives.... ENDIF
I donīt know which operator ( ) should be used to check this....
Thanx for your help Flo
|
|
Top
|
|
|
|
#31122 - 2002-10-21 02:30 PM
Re: Compare an @USERID and an array
|
Flo
Lurker
Registered: 2002-10-21
Posts: 2
Loc: Germany
|
Thanx Lonkero,
quiet easy solution to my problem... ...I should have known it myself...
Iīve read about this "INGROUP"-command, but I thought it checks just the normal Windows-user/-rights (like Admin, Domain Admins or user)... and that wouldnīt bring me any further... Thus I tried the way using an array for each compartment...
How ever, now it works... thank you Flo
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1257 anonymous users online.
|
|
|