Content: Right-click on my Computer, right-click Folder, right-click File, specific file type
Links: http://wenku.baidu.com/link?url=2Z-9tm4kZJiqZaiPXbYmty5TiNaHPuie7vG7sVK1Ik3owwX3gjF9vFI17JSIaetL4yF_ 2fwlwbctfx4imfr446qlmatlpsnouql7ekp8dy_
Content: Registry Modification--[7]hkey_classes_root
Links: http://jingyan.baidu.com/article/aa6a2c14dfe3650d4c19c42b.html
2. Registry key:
"My Computer" right-click menu--hkey_classes_root\clsid\{20d04feo-3aea-1069-a2d8-08002b30309d}\shell
Desktop Right-click menu--hkey_classes_root\*\directory\background\shell
All Files Right-click menu--hkey_classes_root\*\shell
All Floder Right-click menu--hkey_classes_root\floder\shell
Program Uninstall Information--hkey_local_machine\software\microsoft\windows\currentversion\uninstall
3. Command line:
To add a registry key:
REG ADD KeyName [/V ValueName |/ve] [/t Type] [/s Separator] [/D Data] [/f]
KeyName [\\machine\]fullkey
Machine Remote name-ignores default to the current machine. Only HKLM and HKU on the remote machine.
FullKey ROOTKEY\SubKey Rootkey [HKLM | HKCU | HKCR | HKU | HKCC] Subkey The full name of the registry key under the selected ROOTKEY.
/v The name of the value to add under the selected option.
/ve adds a blank value name to the registry key (default).
/t RegKey data type [REG_SZ | REG_MULTI_SZ | REG_EXPAND_SZ | REG_DWORD | Reg_qword | REG_BINARY | Reg_none] If omitted, the REG_SZ is used.
/s Specifies a character that is used as a delimiter in the REG_MULTI_SZ data string, if omitted, as a delimiter.
/d The data to be assigned to the added registry ValueName.
/F forcibly overwrites an existing registry key without prompting.
For example:
REG Add \\ABC\HKLM\Software\MyCo Add a registry key on the remote machine ABC HKLM\Software\MyCo
REG add hklm\software\myco/v data/t reg_binary/d fe340ead Add a value (name: Data, type: REG_BINARY, data: fe340ead)
REG add hklm\software\myco/v mru/t reg_multi_sz/d fax\0mail Add a value (name: MRU, type: REG_MUTLI_SZ, data: fax\0mail\0\0)
REG add hklm\software\myco/v path/t reg_expand_sz/d ^%systemroot^% Add a value (name: Path, type: REG_EXPAND_SZ, data:%systemroot %) Note: Use the caret (^) in the curried string
To delete a registry key:
REG DELETE KeyName [/V ValueName |/ve |/va] [/f]
KeyName [\\machine\]fullkey
Machine remote name-ignores the default value of the current machine. Only HKLM and HKU on the remote machine.
FullKey ROOTKEY\SubKey Rootkey [HKLM | HKCU | HKCR | HKU | HKCC]
Subkey The full name of the registry key under the selected ROOTKEY.
ValueName the name of the value to delete under the selected option. When omitted, all subkeys and values under the key are deleted.
/ve Delete the value of the blank value name (default).
/va Delete all values under the key.
/F forcibly delete without prompting.
For example:
REG Delete HKLM\Software\MyCo\MyApp\Timeout Delete the registry key Timeout and all its subkeys and values
REG Delete \\zodiac\hklm\software\myco/v MTU Delete ZODIAC on MyCo under the registry key MTU
reg delete Hkey_classes_root\clsid\{20d04fe0-3aea-1069-a2d8-08002b30309d}\shell\opencmd.exe Delete "My Computer" right-click an item
4. Registry key import file (. reg file):
Example
Windows Registry Editor Version 5.00
[Hkey_classes_root\clsid\{20d04fe0-3aea-1069-a2d8-08002b30309d}\shell\opencmd.exe]
[Hkey_classes_root\clsid\{20d04fe0-3aea-1069-a2d8-08002b30309d}\shell\opencmd.exe\command]
@= "C:\\windows\\system32\\cmd.exe%1"
"Note": "Add/k after cmd.exe to execute commands after opening cmd: cmd.exe/k tasklist or cmd.exe/k tasklist & Help"
Editing of the computer's right-click menu (Registry action)