Jump to content
Sign in to follow this  

Folder Properties

Recommended Posts


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

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


Also check out SetACL:


This has already been ported to AutoIt.


Edited by weaponx

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.