用命令快速添加程序到右键菜单

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\NotePad++]
@="用 NotePad++ 打开"
"Icon"="E:\\Program Files (x86)\\Notepad++\\notepad++.exe,0"
[HKEY_CLASSES_ROOT\*\shell\NotePad++\command]
@="E:\\Program Files (x86)\\Notepad++\\notepad++.exe %1"
[HKEY_CLASSES_ROOT\Directory\shell\NotePad++]
@="用 NotePad++ 打开"
"Icon"="E:\\Program Files (x86)\\Notepad++\\notepad++.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\NotePad++\command]
@="E:\\Program Files (x86)\\Notepad++\\notepad++.exe %1"

以notepad++为例,把上面的代码贴到txt中,改后缀为.reg,然后双击执行即可

猜你喜欢

转载自www.cnblogs.com/-txf-/p/11599036.html