Add:
1. Click Start and run, enter regedit, and click OK.
2. Open the Registry Editor and find the following path:
HKEY_CURRENT_USER/software/classes/Applications
For exampleProgramTest.exe
You can create an item as follows:
HKEY_CURRENT_USER/software/classes/applications/text.exe/Shell/Open/command
Then, modify the default value on the right of the command item:
"C:/program files/test/test.exe" "% 1"
Note: C:/program files/test/test.exe is the installation directory of the test application.
3. Refresh the Registry to view the newly added programs in the list of opened programs.
Delete:
1. You only need to delete the corresponding application item. To delete test.exe
Text.exe under HKEY_CURRENT_USER/software/classes/applications.
2. Enter HKEY_CURRENT_USER/software/Microsoft/Windows/CurrentVersion/Explorer/fileexts/. Extension/openwithlist
. Extension refers to the file extension you want to modify. Delete the key with the same name as the program you want to remove.