blog
Scan QR Code To Quick Access The Digital Orbis

[How To] Customize Right Click Menu Options in Windows

Have you ever been in a situation when you wanted to see an additional option on the right click to do whatever you want? Like you want to open Notepad just by right clicking and selecting Notepad option or Showing and Hiding files just by right clicking on it.  Then, here is a simple registry hack that will make you do it for you.

[How To] Customize Right Click Menu Options in Windows


I'll show you two demonstrations. In the first one, I'll show you How to add a new option in the Right Click Context Menu and in the second one, How to add new options in the Right Click Context Menu of files.

Let's start with the first one.

Demo 1: How to add a new option in the Right Click Context Menu


Step 1: Click on Start Menu and open Run application.

                                        OR

Just press Window + R keys to open Run application.

Run

Run



Step 2: Write "regedit" and press Enter.

Step 3: Expand HKEY_CLASSES_ROOT and browse down to the following key:

HKEY_CLASSES_ROOT\Directory\Background\shell

[How To] Customize Right Click Menu in Windows



Step 4: Right click on shell and click on New > Key.

[How To] Customize Right Click Menu in Windows



Step 5: Give the new key the name that you want to show up on the desktop context menu. In our example, we're using "Notepad".

[How To] Customize Right Click Menu in Windows





Step 6: Right click on Notepad and click on New > Key. Enter the key name "command" (without quotes and in small letters).

[How To] Customize Right Click Menu in Windows



Recommended Post: [How To] Add Apps to Startup in Windows 10

Step 7: There will be a (Default) key with type "REG_SZ". Double click on it and write Notepad.exe in the value data field as shown in the screenshot.

Think this "value data" as a command that will get executed in the Command Prompt. Writing Notepad.exe in the Command Prompt opens up Notepad, that's why we have written Notepad.exe in the "value data". 

Now, what if you want to open Paint program from the command prompt, what will you write? Paint.exe? Nooooooo. You will have to write there mspaint.exe because Paint program is defined as "mspaint.exe" program in windows/system32 folder and what if you want to open any third party program? Then, you have to put the full path of that executable file(.exe) in the "value data" field.

Click Ok.


[How To] Customize Right Click Menu in Windows

[How To] Customize Right Click Menu in Windows



And we are done. Right click on the desktop or inside any directory, you'll see Notepad option there. Just click and it'll open Notepad for you.

Right click Notepad



And now we come to the second one.

Demo 2: How to add new options in the Right Click Context Menu of files



Step 1 and Step 2 are similar as above.


Step 3: Expand HKEY_CLASSES_ROOT and browse down to the following key:

HKEY_CLASSES_ROOT\*\shell


Step 4: Follow the same steps as above to add new options. In our case, we've added two new options Show and Hide. Create a new Key inside both of the options as "command" (same as we created on Demo 1).

[How To] Customize Right Click Menu in Windows

[How To] Customize Right Click Menu in Windows

[How To] Customize Right Click Menu in Windows



Step 5: There will be a (Default) key with type "REG_SZ". Double click on it and write attrib +h "%1" in the value data field.

As I said earlier, that we can write any command that we can execute in the Command Prompt. So, I have written attrib command here, that helps us to change attributes of a file or folder. In attrib +h "%1" command, +h option hides a file/folder and "%1" is the parameter that is bound to the name of the file right clicked, means the file on which it'll perform the action.
Now, click Ok button and we're done with "Hide" option.
Same thing can be done for "Show" option, we just have to replace the +h option with -h


Recommended Post: Top 12 Google Chrome Tips & Tricks


[How To] Customize Right Click Menu in Windows

[How To] Customize Right Click Menu in Windows

[How To] Customize Right Click Menu in Windows

[How To] Customize Right Click Menu in Windows

[How To] Customize Right Click Menu in Windows

[How To] Customize Right Click Menu in Windows

[How To] Customize Right Click Menu in Windows

[How To] Customize Right Click Menu in Windows




Now, test it by right clicking on any file it should work perfectly. Check the gif below to see the things working.

Hide Show GIF