WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Sorting START menu Alphabetically


Below are the three methods I have found thus far to sort the start menu in alphabetical order. I have made comments about what I like and dislike about each of them:

method 1:

Delete the HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs key and restart the windows session (no screen flashes, but have to restart the session)
subkeystart = "Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs"
RegDeleteKey(@REGCurrent, subkeystart)
IntControl (66, 0, 0, 0, 0)

method 2:

Just run the sendkey function on the Start Menu button. Just 1 line of code, no reboot required, but some annoying screen flashes.
SendKey ("^{Esc}P+{F10}B{ESC 2}")

method 3:

Use OLE and sendkey. Similar to method 2, but the screen flash is less noticeable
oShellApp = ObjectOpen("Shell.Application")
SendKeysto("Taskbar" ,"^{PGDN}s{ESC}")
ObjectClose(oShellApp)

Article ID:   W16002
File Created: 2004:03:30:15:42:08
Last Updated: 2004:03:30:15:42:08