写注册表添加右键菜单

添加:

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\我的程序]
"icon"="C:\\image\\345.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\我的程序\command]
@="C:\\Program Files (x86)\\**.exe"

 

删除1:

Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\我的程序]

 

删除2:

WindowsRegistryEditorVer-sion5.00

[HKEY_CURRENT_USER/Software/REG文件测试]

@=“test”“字符串”=-“双字节”=-“Dword值”=-注意到等号后面的减号了吧,这就是删除的意思。

如:要删除[HKEY_CURRENT_USER/Software/REG文件测试]下的“test”项,就这样写:

WindowsRegistryEditorVer-sion5.00

[HKEY_CURRENT_USER/Software/REG文件测试]

"test"=-

posted @ 2017-11-29 11:00  one_person  阅读(542)  评论(1编辑  收藏  举报