window Add/delete system right-click menu items

1. Add folder right-click menu items

1. Open the Windows Registry Editor. Press the Win+R key combination, enter regedit, and click OK.

2. In the registry, find the following path:

HKEY_CLASSES_ROOT\Directory\shell

3. Refer to other menu items to add, such as adding WebStorm menu items:

1) Right-click the shell folder and select "New" -> "Item" and name it "WebStorm".

2) Change the value of the default item to "Open With WebStorm". This value is what is displayed in the right-click menu.

3) Right-click the "WebStorm" item, create a new "String Value (S)", name it "Icon", and the data is the full path of the webstorm executable program, for example:

D:\Program Files\JetBrains\WebStorm 2020.1.1\bin\webstorm64.exe

4) Right-click the "WebStorm" item, create a new "item (K)", name it "command", change its default data to the full path plus "%1", all enclosed in double quotes, for example:

"D:\Program Files\JetBrains\WebStorm 2020.1.1\bin\webstorm64.exe" "%1"

4. At this point, the right-click menu item for adding a folder has been created. You can right-click on the folder to try it.

In the same way: If you want to delete a right-click menu item, find the corresponding item under HKEY_CLASSES_ROOT\Directory\shell and delete it.

2. Add right-click menu items in any blank space

The steps are the same as "Add right-click menu items to folders" above, the only difference is

1. The registry paths are different. The registry path for right-clicking any blank space to add menu items is

HKEY_CLASSES_ROOT\directory\background\shell

2. The parameter after the command command becomes “%V”

"D:\Program Files\JetBrains\WebStorm 2020.1.1\bin\webstorm64.exe" "%V"

3. Add file right-click menu items

        The steps for "adding a right-click menu item to a folder" are the same as above. The only difference is that the registry path is different. The registry path for adding a right-click menu item to a file is

HKEY_CLASSES_ROOT\*\shell

         The other steps are exactly the same as those for "Add right-click menu items to folders".

Guess you like

Origin blog.csdn.net/u013992330/article/details/132801215