Sign in to follow this  
Followers 0
440LVB

Change rights on a folder

4 posts in this topic

Hello

I want to change the rights of a folder that I create with AutoIT. Can I do that? (either with a DOS command or with an AutoIT function)

Thanks

Share this post


Link to post
Share on other sites



Hi,

on 2000/Xp use the dos command : cacls

Andre


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites

Hi,

on 2000/Xp use the dos command : cacls

Andre

<{POST_SNAPBACK}>

I saw that. Thank you for your answer, but the command has an error :

RunWait(@ComSpec & " /c " & "cacls d:\" & @UserName & " /T /G " & @UserName & ":F /G Administrateur:F"

The error is on & ":F /G Administrateur:F". Is the number of '&' that I can use in one string limited?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Try that?

RunWait(@ComSpec & " /c " & 'cacls "d:\" & @UserName' & " /T /G " & '@UserName & ":F /G Administrateur:F"')
Or>?

#Include <process.au3>
_RunDOS("cacls " & '"d:\" & @UserName' & " /T /G " & @UserName & ":F /G Administrateur:F")

I wish I was better at qoutation marks with command prompt.

Edited by Burrup

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

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