写注册表添加右键菜单

添加:

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

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

删除1:

Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOTDirectoryBackgroundshell我的程序]

删除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"=-

原文地址:https://www.cnblogs.com/yangqimo/p/7919163.html