Monday, May 7, 2007

Adding right-click menu items from files and folders

Well, I was going through my own post on removing right-click menu items from files and folders and I found that something was missing. People not only want to remove items, they also want to add items in their right-click, don’t they? First I thought that a little change in the previous post should do that. I thought that just adding a key in the HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers should do the trick but it didn’t. Then I searched for the tweak and finally found just to facilitate my readers with it. Just back up your registry first then follow the procedure.

Start -> run
Type ‘regedit’ (without quotes) and enter
The registry editor will open
Navigate yourself to HKEY_CLASSES_ROOT\Folder\shell
Right-click the Shell key and choose New -> Key
Name it anything, this will appear in the right-click menu
Then right-click the new key that you made and create another key
Name it ‘command’
Select ‘command’ and in the right-pane double click the default value
Enter the name of application(e.g. wordpad.exe) , click OK and exit the registry
The above process is for adding the item in the right-click of the folder only. To do same for files you need to navigate yourself to HKEY_CLASSES_ROOT\Folder\shell. If there is no shell key, create one and the rest of the process is same as above.

Enjoy this trick and please comment. Your comments are valuable to me.

No comments: