I want to add an option in windows 11 context menu but not in show more option submenu , it should added to the main context menu . I don't want to use the classic windows 10 context menu. how to do this
Loading
I want to add an option in windows 11 context menu but not in show more option submenu , it should added to the main context menu . I don't want to use the classic windows 10 context menu. how to do this
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajkiran SwainRank #165 · 14.4K reputationPosted Mar 30, 2023, 9:51 AM EDT
To add an option to the main context menu in Windows 11, you can use the following steps: Open the Registry Editor by pressing Windows + R keys, typing "regedit" and hitting Enter. Navigate to the following registry key: HKEY_CLASSES_ROOT\Directory\Background\shell Right-click on the "shell" key and select "New" > "Key". Name the new key whatever you want the option to be called in the context menu. Double-click on the "(Default)" value in the right pane and enter the text you want to display in the context menu. Right-click on the key you just created and select "New" > "Key". Name this new key "command". Double-click on the "(Default)" value in the right pane and enter the path to the executable or script you want to run when the option is selected. For example, if you want to add an option called "Open Command Prompt Here" that runs the command prompt in the current directory, you would do the following: Create a new key called "OpenCmdHere" under HKEY_CLASSES_ROOT\Directory\Background\shell. Set the "(Default)" value to "Open Command Prompt Here". Create a new key called "command" under the "OpenCmdHere" key. Set the "(Default)" value to "cmd.exe /k cd %v". After completing these steps, right-click on an empty area of the desktop or a folder and you should see your new option in the main context menu.