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 command is how you could run a script using NodeJS:

C:\Program Files\nodejs\node.exe C:\CustomMenuOptions\customOption1.js "%1"
  • %1 is how we pass in the target file (the file that was right clicked on) as a parameter to our program.
This post is licensed under CC BY 4.0 by the author.