Page 1 of 1 1
Topic Options
#173720 - 2007-02-07 03:29 PM Filter by PC
sape Offline
Lurker

Registered: 2007-02-07
Posts: 3
Loc: netherlands
Hello,

I can perfectly copy files, if i put users in a group. When i put computers in this group, kix doesn't copy files.

If InGroup ("NEW")
copy "O:\NEW.job" "C:\WINDOWS\Tasks\NEW.job"
Endif


:end

Exit


Is it even possible to define by PC with kix? Or can you only assign action by users in a group?

Thanks,
_________________________
-

Top
#173722 - 2007-02-07 03:37 PM Re: Filter by PC [Re: sape]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4572
Loc: USA
See:

Incontainer() - http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=83022
ComputerinGroup() - http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=84539
_________________________
(... better days ahead)

Top
#173723 - 2007-02-07 03:38 PM Re: Filter by PC [Re: Allen]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
InGroup() is only for @UserID.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#173724 - 2007-02-07 03:47 PM Re: Filter by PC [Re: Les]
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
Les, it's for user-objects only - and userid is a macro getting the current logged on user-object from ad. Right or wrong?
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!

Top
#173726 - 2007-02-07 03:50 PM Re: Filter by PC [Re: Björn]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
you could try ComputerInGroup()
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#173727 - 2007-02-07 03:56 PM Re: Filter by PC [Re: Benny69]
sape Offline
Lurker

Registered: 2007-02-07
Posts: 3
Loc: netherlands
Thanks for the reply's.

ComputerInGroup() is working \:\)
_________________________
-

Top
#173728 - 2007-02-07 04:07 PM Re: Filter by PC [Re: sape]
sape Offline
Lurker

Registered: 2007-02-07
Posts: 3
Loc: netherlands
If ComputerinGroup ("TESTCOPY")
copy "O:\NEW.job" "C:\WINDOWS\Tasks\NEW.job"
Endif


Simple solution \:\)
_________________________
-

Top
#173729 - 2007-02-07 04:37 PM Re: Filter by PC [Re: sape]
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
Very simple, if you add the function as well ;\)
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!

Top
#173731 - 2007-02-07 04:50 PM Re: Filter by PC [Re: Björn]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What's your point? @UserID is the user in who's security context the script is running. InGroup() infers the current user only, no other user, no computer, nothing else.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

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
1 registered (mole) and 1300 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.046 seconds in which 0.018 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