Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: I Need Help To Reorder The Context Menu Script In Script Form?


29 Jun 2011   #1

Windows 7 Pro x64 SP1 & Windows 8 & 8.1 Pro x64
 
 
I Need Help To Reorder The Context Menu Script In Script Form?

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!

My System SpecsSystem Spec
.

Reply

 I Need Help To Reorder The Context Menu Script In Script Form?




Thread Tools



Similar help and support threads for2: I Need Help To Reorder The Context Menu Script In Script Form?
Thread Forum
How do I move context menu items into a cascading context menu? Customization
Relocate WinRAR Context Menu (Context Menu Handlers) Customization
VBS script: Cannot find script engine General Discussion
In need of a script... Performance & Maintenance
script error when running a vbs script. Network & Sharing
Any way to reorder the context menu for files/folders? Customization
Reorder start menu Customization

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:14 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33