Sign in to follow this  
Followers 0
DrStankly

Folder Properties

3 posts in this topic

I am currently in the process of automating a program installation and configuration. I was finally able to figure out how to open the properties of a Short Cut using the ShellExecute command, but I cannot get this command to open up the properties of a File Folder. In the help file for ShellExecute it states that the "verb" argument "properties" can "Displays the file or folder's properties." Whenever I try to do this I get a windows error "This file does not have a program associated with it for performing this action. Create an association in the Folder Options control panel."

This is what my script looks like:

ShellExecute("TEMP" , "" , "C:\" , "properties")

My ultimate goal for opening the properties window is to add an entry into the security tab.

Does the syntax of my code look correct? Is this indeed a feature of the ShellExecute command to open folder properties? Is there a better way to open the properties window? Or is there a better way of adding a security entry for this folder? Any help will be very helpful, thank you.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

You should be doing this through the gui at all. Call a program from the command line. Here is an example (xcacls):

http://support.microsoft.com/kb/318754

Also check out SetACL:

http://setacl.sourceforge.net/

This has already been ported to AutoIt.

http://www.autoitscript.com/forum/index.ph...0&hl=setacl

Edited by weaponx

Share this post


Link to post
Share on other sites

Thank you for your guidance with this problem.

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