Sign in to follow this  
Followers 0
jp10558

Set NTFS Permissions from script

3 posts in this topic

Does anyone have an easy way to set NTFS permissions from within AutoIT?

Share this post


Link to post
Share on other sites



Does anyone have an easy way to set NTFS permissions from within AutoIT?

We use CALCS to set NTFS permissions. It's a pretty good utility. Don't know how to do it in AutoIt, but though this may help.

http://www.ss64.com/nt/cacls.html


-- If the apocalypse comes... beep me.

Share this post


Link to post
Share on other sites

If you want to do it from the command line (with RunDOS(), Run(), RunWait(), ShellExecute(), etc.) then use SetACL.exe (command line version).

There is also an ActiveX OCX file on that same page to provide a COM object interface, which ptrex has demonstated using from inside AutoIt without any command lines at all.

Cheers!

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0