Add a program to the right-click menu to open the project folder

Take Pycharm as an example

 

Part 1:
Add programs to the right-click menu. The experimental program here is pycharm, and the path is in the form of D://pycharm/pycharm.exe. The actual path is not, it's here for brevity.

1. Open the registry and find the following: HKEY_CLASSES_ROOT\Directory\Background\shell

2. Select the shell, right click, create a new item, enter the name, and you can define it yourself. Here is called cmder

2. Select the newly created item cmder, right-click to create a new item, and enter the name as command. this name cannot be changed

3. The value in the command is set to the exe file path of the program you want to join, until the end of the exe. You can right click on the exe file, Security -> Properties to find the path. Double-click the value in the column of the item name to set the value of the item.

4. Right-click the cmder item, create a new string value, change the name to Icon, and the path is the address of the program icon. add the icon

5. Go back to the desktop, right-click, and you will see your program.

The second part:
Right-click the folder and open it with a specific program. Here still take pycharm as an example.

First find the registry address
HKEY_CLASSES_ROOT\Directory\shell

Create a new program item
Right-click the shell item, New -> Item -> Write the name yourself, here is pycharm.

Create a new command item,
right-click the pycharm item ——> New Item ——> the name must be command ——> the value is the full path of the program exe file plus %V, for
example: "D://pycharm/pycharm.exe" "%V"

Add icon
Refer to the setting method in the first part, just add the value Icon in the pycharm item. Right-click pycharm, add a string value Icon, and the value is the icon path.

Change the value displayed in the right-click menu
Right-click pycharm and modify the value of the "default" value. Its value is the value displayed in the right-click menu.

 

Guess you like

Origin blog.csdn.net/conquer_galaxy/article/details/131014927