Page 1 of 1 1
Topic Options
#166581 - 2006-08-30 10:31 AM location AND group
ikmps Offline
Fresh Scripter

Registered: 2003-05-04
Posts: 37
Loc: Newcastle
Hi to all

I would like to do something like this

If $location = “room1” and ingroup =”staff”
Setup start menu folder location
Else
Setup different start menu location
End if
Don’t know whether I can do this ????
Thanks for any help

Top
#166582 - 2006-08-30 11:18 AM Re: location AND group
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Well not a lot of details, but would think so.

How do you get or specifiy $location ?

Top
#166583 - 2006-08-30 11:19 AM Re: location AND group
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Sure you can. Where are you getting $Location from?
Code:
If @SITE="XXXX" and InGroup("Staff")
; Staff at site XXXX
Else
; Everyone else
EndIf



If you have a number of mutually exclusive sections then look at using the SELECT construction instead.

Top
#166584 - 2006-08-30 01:07 PM Re: location AND group
ikmps Offline
Fresh Scripter

Registered: 2003-05-04
Posts: 37
Loc: Newcastle
Hi

Sorry for not a lot of detail
the location$ is reading the workstation name

$location = substr(@wksta, 1,8)

cheers

Top
#166585 - 2006-08-30 01:41 PM Re: location AND group
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Room1 is just 5 characters. When you fill $location it starts reading at 1 and stop at 8. So $location can never be room1.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#166586 - 2006-08-30 01:58 PM Re: location AND group
ikmps Offline
Fresh Scripter

Registered: 2003-05-04
Posts: 37
Loc: Newcastle
Hi Mart

Sorry it should of read room1-pc

Top
#166587 - 2006-08-30 02:01 PM Re: location AND group
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
otherwise you could just use a instr('roomX') if you know you have any clients thats not up to your standard.
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 539 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.042 seconds in which 0.012 seconds were spent on a total of 13 queries. Zlib compression enabled.

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