Right-click menu adds an association item

zhaozj2021-02-16  85

Today, you need to add a custom file in the system to the right-click menu in the system, such as WinRAR and UltraEdit. I remember to see the information before said that the modification registry can be realized. Then look for keyword "winrar", huh, I understand it.

Basically in the registry, the right-click menu is modified in the following places.

[Folder] hkey_classes_root / folder / [directory] HKEY_CLASS_ROOT / DIRECTORY / [Drive] HKEY_CLASES_ROOT / DRIVE [Executable File] HKEY_CLASS_ROOT / EXEFILE

Every item has the following composition / defaulticon / shell / shell / menu Name / shell / menu Name / Command Points the file path to execute Command in the Command Default Item

Practice: Right-click Menu HKEY_CLASS_ROOT in Custom File Next, for example: .pak default PakfilehKey_Classes_root, build a Pakfile item, add default, shell item, add the right-click menu name, and Command items

HKEY_CLASS_ROOT | | -. Pakfile | ... | | --PAKFILE | | - DEFAULTICON | --SHELL | --- Menu (Open with PAKEDIT) | --COMMAND (Default) Directory, I point to the executive directory of Notepad)

Then, arbitrarily modify a text file with .pak, right click, haha ​​ok

The above is the work in this morning.

转载请注明原文地址:https://www.9cbs.com/read-14602.html

New Post(0)