When you right click on the folder, What you see? A list of menu options called as “Context Menu”. It has a lot of options like Open, explore, Copy, cut Etc. Ever wondered how can you add your own customized option on this menu? See an example below.
Add any program to Right Click Menu
Well, Why you are showing me this? Why would I ever need it?
There can be a couple of reasons why you might do this
If you love to customize your OS,
If you enjoy playing with your computer configuration,
You frequently open a site while browsing in any folders,
You frequently open notepad to edit things, Why to go to start menu to open notepad when you can simply open it from anywhere just by right click
There are many many possibilities depends on how creatively you think. If you have questions or get an idea but could not figure out how to do, ask me from comment box and I would be happy to guide you.Alright, I get it. Show me how can I add the program to right-click menu
We are going to accomplish this by modifying the registry. If you are not so sure what registry is, you should read Introduction to Windows Registry and then Launching the registry Editor Tool.
Step 1. Open registry editor by typing regedit in a run dialog box or from a command prompt.
Step 2. Navigate to HKEY_CLASSES_ROOT\Directory\Shell
Step 3. Right click on Shell and select create a new key. Name it anything you like. Does not matter.
Step 4. On the right side, you will see a value name “Default”. Double click on it and put a name.
Whatever You put in this Default Value, will appear in the right click Menu. Again I will use WinTechGeek.
Step 5: Right Click on the newly Created Key again and then select new=>Key.
This time, Name it “Command” as exactly. If you put anything other than Command, It will not work.
creating command key
On the right side of command, you will see a value “Default”.
This is the Key which will execute whatever you want to do from that right click menu. For example, If you want to open a website, put “iexplore http://www.google.com” (replace google with the name of your fav site).
I will put down a few commands which you can use, you can think many more
explore Open a website of your choice.
notepad.exe – Start notepad
Path of any software – Start that application.
Anything else which you can think of – It will do what you think
Sounds Interesting, I will use it for sure. Would You mind explaining how it works?
Sure, I am glad you are still interested.
If you read the article on Windows registry intro, It’s clear that registry is the heart of Windows operating system, No matter what we do on the computer it has to consult the registry to either get or put info. And of course when we right click on folder/files/ to populate the context menu it has to consult the registry. The trick we used was to modify the registry to make windows work the way we wanted.
HKEY_CLASSES_ROOT is the root key which holds all the information about file associations and stuff. When we right-click on a file/folder windows looks for that file type from this root key and then executes the command defined there. There is a lot of things about this key, let us not go deep and come to our point right click on the folder. Well, when we right click on any folder windows quickly reads HKEY_CLASSES_ROOT\directory\shell and HKEY_CLASSES_ROOT\folder\shell keys. Under these keys there are some sub keys which we see like Find, Open, Explore.
Each subkey under Shell has a name, a default value for that key name, a subkey Command and a default value for Command. The default value of Command key is the one which will get executed when you select your menu option from the Right-click menu.