Jump to content

Recommended Posts

Posted

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.

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
×
×
  • Create New...