Sign in to follow this  
Followers 0
DarthVega

Sort By Name

3 posts in this topic

Is there a dll call or an api function call that can be used in AutoIt that will run the "Sort By Name" command when you right click in the Start Menu?

Share this post


Link to post
Share on other sites



With this you can accomplish a one time sort.

RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\") ; You may have to use "Start Menu2" instead.
ProcessClose("explorer.exe")
While ProcessExists("explorer.exe")
    Sleep(100)
WEnd
Run("explorer.exe")

To make Windows always alphabetize the list, remove the permissions from the Registry key that controls the sort order for the Start menu. To do so, go to:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder

Choose Edit | Permissions and click the Advanced button. Deselect the Inherit From Parent The Permission Entries That Apply To Child Objects check box and then click Copy when the Security dialog box pops up. Click OK and clear the Full Control entry for your account and all security groups you are a member of. Leave only Read permission.

Share this post


Link to post
Share on other sites

With this you can accomplish a one time sort.

RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\") ; You may have to use "Start Menu2" instead.
ProcessClose("explorer.exe")
While ProcessExists("explorer.exe")
    Sleep(100)
WEnd
Run("explorer.exe")

Thanks man, I knew about deleting the registry entry but it didn't always work... this should help.

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