Forum Discussion
How to add a new option to context menu?
- Sep 25, 2024Right-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.
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"