Home Windows Custom Right Click Menu Option

Windows Custom Right Click Menu Option

How to add a custom menu option to the right click menu in Windows 10 and have it execute a command/application.


  1. Open regedit.msc.
  2. Navigate to HKEY_CLASSES_ROOT\*\shell.
  3. Right click on shell and select New -> Key.
  4. Enter a name for your new menu option.
  5. On this new key (folder in the UI) right click and select New -> Key. Call this new key command
  6. The default value should be the command you wish to execute when the menu option is clicked:


The following is how you would create a right click option run a file with NodeJS.

First create a file with the following contents:

node.exe %1
  • %1 is how we pass in the target file (the file that was right clicked on) as a parameter to our program.

Create the new right click menu (Run with NodeJS) in regedit and make it execute the above script:

This post is licensed under CC BY 4.0 by the author.