Page 1 of 1 1
Topic Options
#162937 - 2006-06-06 10:29 AM User Permissions
SASKINN Offline
Fresh Scripter

Registered: 2006-06-06
Posts: 10
Hi i need help with this:

i want to get the access rights/permission groups of a folder, after that i want to set/modify the rights on that folder.

can somebody help me?

thanks

SASKINN

Top
#162938 - 2006-06-09 02:48 PM Re: User Permissions
glwday Offline
Fresh Scripter

Registered: 2002-08-01
Posts: 11
I would use something like this;

Shell('cmd /c cacls "$dirinstallto" /t /e /c /g $localgroup:R administrators:F system:F /r $everyone Users %username%')

the /g grants permissions and /r removes them

See http://www.ss64.com/nt/cacls.html for full details of useage

Regards

Top
#162939 - 2006-06-09 03:36 PM Re: User Permissions
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Whazzup with the parens? Shell is not a function.
_________________________
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
0 registered and 484 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.064 seconds in which 0.012 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