Page 1 of 1 1
Topic Options
#203269 - 2011-10-15 07:53 PM Windows 7 IF inGroup (XXX)
Chan Offline
Fresh Scripter

Registered: 2011-10-14
Posts: 15
Loc: Arizona
Has any one got the IF ingrop to work on Windows 7. When running it get to this modual , and scipps it and goes tot eh next one.... I belive and cant see the Group ( TESTING ON lOCAL DOMAIN)

 Code:
Select
Case InGroup("xxxxxx")
	Call @ldrive + $Path + "\xxxxx\xxxxx.kix"
	If @error = 4		; Checks for forced exit of script
		GoTo ScriptError
	EndIf
Case 0
	GoTo ScriptError
	? "The user does not belong to a site group or belongs to more than one."


Edited by Mart (2011-10-16 11:47 AM)
Edit Reason: Please use code tags when posting code.

Top
#203273 - 2011-10-16 11:52 AM Re: Windows 7 IF inGroup (XXX) [Re: Chan]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
You are missing an EndSelect and it should be Case 1 instead of Case 0. Cleaning the group cache might also be needed. To do this start kix with the /f parameter or delete this registry key HKEY_CURRENT_USER\Software\KiXtart\TokenCache.

 Code:
Select
	Case InGroup("xxxxxx")
		Call @ldrive + $Path + "\xxxxx\xxxxx.kix"
		If @error = 4 	; Checks for forced exit of script
			Goto ScriptError
		EndIf
	Case 1
		Goto ScriptError
		? "The user does not belong to a site group or belongs to more than one."
EndSelect
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#203274 - 2011-10-16 03:58 PM Re: Windows 7 IF inGroup (XXX) [Re: Mart]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I would amend it for testing purposes...
 Code:
Case InGroup("xxxxxx")
		? "Ingroup xxxxx, calling script:" ?
		@ldrive + $Path + "\xxxxx\xxxxx.kix"
		sleep 10
		Call @ldrive + $Path + "\xxxxx\xxxxx.kix"	


cause my guess is, the path doesn't exist either.
_________________________
!

download KiXnet

Top
#203278 - 2011-10-17 07:46 AM Re: Windows 7 IF inGroup (XXX) [Re: Lonkero]
Chan Offline
Fresh Scripter

Registered: 2011-10-14
Posts: 15
Loc: Arizona
Thanks, MART Clearing the Cache did it the scrip is now running through, no on to the next stage....
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 235 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.049 seconds in which 0.025 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