Forum Discussion

Bounskui's avatar
Bounskui
Copper Contributor
Sep 14, 2024

How to add a new option to context menu?

The method in the screenshot does not work. Please kindly suggest me how to do that.

  • Right-click on the shell key (or any other key depending on context) and select New > Key. Name the new key whatever you want to display in the context menu.
  • Nobel_Baynes's avatar
    Nobel_Baynes
    Iron Contributor
    The developer have to code it to make it work with the new context menu.
  • Lanesy's avatar
    Lanesy
    Copper Contributor
    Sometimes, after a sudden power interruption, it may take a few cycles of powering on and off to get everything back to normal. Just be cautious to avoid causing further damage. Good luck getting your PC up and running again!
  • Secna's avatar
    Secna
    Copper Contributor
    Right-click on the shell key (or any other key depending on context) and select New > Key. Name the new key whatever you want to display in the context menu.
  • Rewaina's avatar
    Rewaina
    Copper Contributor
    Editing the Windows Registry can be risky, and if you make a mistake, it can cause system issues. Always back up the registry before making changes.
  • Eommy's avatar
    Eommy
    Iron Contributor

    Bounskui 1.Open the Registry Editor:
    Press Win + R to open the Run dialog.
    Type regedit and press Enter.
    2.Navigate to the appropriate registry key:
    For adding a context menu option for all file types:
    HKEY_CLASSES_ROOT\*\shell
    For adding a context menu option for specific file types, navigate to the specific file type:
    HKEY_CLASSES_ROOT\.txt\shell (for text files, replace `.txt` with your file type)
    3.Create a new key:
    Right-click on the shell folder (or the appropriate folder for your file type).
    Select New > Key.
    Name the key with the text you want to appear in the context menu (e.g., "Open with MyApp").
    4.Set the default value:
    Click on the new key you created.
    In the right pane, double-click the (Default) value and set it to your desired display name (the name that appears in the context menu).
    5.Create a command:
    Right-click on the key you just created and select New > Key.
    Name this key command.
    Select the command key, and double-click the (Default) value in the right pane.
    Enter the path to the application you want to run, followed by any arguments if necessary, e.g.:
    "C:\Path\To\YourApplication.exe" "%1"

  • Nguyenais's avatar
    Nguyenais
    Iron Contributor
    Powertoys is releasing a context menu editor soon I believe
  • Felipefou's avatar
    Felipefou
    Copper Contributor
    Select the newly created key. In the right pane, double-click on the (Default) value and enter the name you want to display in the context menu.
  • Maggesnt's avatar
    Maggesnt
    Copper Contributor
    Be careful while editing the registry; changing wrong values can lead to system instability. Ensure that you follow these steps exactly as described, and always have a backup ready!

Resources