Hello. I have a question and I need your help!
How do I rearrange the order of items in Windows 7 context menu after I have made a working script I can run to modify a registry? I see they are arranged by some sort of alphabetical order in the context menu. I wish not to have the items in the context menu listed in this manner, but a manner of my choosing.
I was previously told to add "Position"="Top" to an entry, but for some reason it does not do anything. Actually, when the script is executed, it removes one of my items in the context menu after I added it in the script next to the item and then saved and then executed the script. Of course, I may be not doing it correct either! I am new to script writing. To fix this and return it back to the previous working context menu, I have to go into the registry to fix it, then remove the code from the script back to its original script, and then save and run the script again to have it show like the context menu was originally.
I have a sample script below I am using for 3 Windows items I want to be put the order I wish. Please show me how to place these 3 Windows items in the order I want by either: (1) writing a completed REG file attached to your response or (2) a written Windows System Registry script in your reply I can therefore make my own REG file from.
The three Windows items I want in this order (Of course not in of alphabetical order as it is displayed now: Control Panel, Programs and Features, Windows Notepad):
1. Windows Notepad
2. Control Panel
3. Programs and Features
Oh, please leave it as "Windows Notepad" and NOT change it to "Notepad" (Obviously it makes a difference on the arrangement.)!
Please do not provide me the manual method steps to perform this function to the registry. Also, I am not interested in a third party program either that would perform this action as well.
The given script to work with:
[HKEY_CLASSES_ROOT\Directory\Background\shell\Control Panel]
"Icon"="C:\\Windows\\Context Menu Icons\\Control Panel (1).ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Control Panel\command]
@="rundll32.exe shell32.dll,Control_RunDLL"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Programs and Features]
"Icon"="C:\\Windows\\Context Menu Icons\\Programs and Features.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Programs and Features\command]
@="control appwiz.cpl"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Windows Notepad]
"Icon"="notepad.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Windows Notepad\command]
@="notepad.exe"
Please reply.
Thank you!