Jump to content

Setting file/directory permissions


Recommended Posts

Is there a native AutoIt way to set file/directory permisions (adding ppl and modifying ntfs rights for file/directory)? Or the only way is to use extenal .exe's ? Maybe someone written udf for this?

Edit: nm, i just used cacls which is in windows xp but still it would be nice to see such feature built into autoit as native command.

Edited by MadBoy

My little company: Evotec (PL version: Evotec)

Link to comment
Share on other sites

Is there a native AutoIt way to set file/directory permisions (adding ppl and modifying ntfs rights for file/directory)? Or the only way is to use extenal .exe's ? Maybe someone written udf for this?

Edit: nm, i just used cacls which is in windows xp but still it would be nice to see such feature built into autoit as native command.

I use SetACL.exe in my scripts for that purpose. It is much more powerful. By calling DLLs and COM interfaces, you might be able to do everything SetACLs does inside AutoIt, but for me it's not worth the massive effort. SetACL already does shares, file system, registry, printers, everything that has an ACL.

:)

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
Link to comment
Share on other sites

@all

Or you can translate the MS XCACLS.Vbs scritp to AU3.

Or Run it as a Vbscript in AU3 if you don't want to translate it.

This does -> List/Change ACLS for files and directories

This script is part if the MS Resource Kits.

Regards,

ptrex

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...