Jump to content

Folder Properties


DrStankly
 Share

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.

Link to comment
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):

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
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...