添加右键菜单
sublime text 3 移动版,没有添加关联文件,没有右键菜单,这里手动配置生产右键菜单
[Version]
Signature="$Windows NT$"
[DefaultInstall]
AddReg=SublimeText3
[SublimeText3]
hkcr,"*\\shell\\SublimeText3",,,"用 SublimeText3 打开"
hkcr,"*\\shell\\SublimeText3\\command",,,"""%1%\sublime_text.exe"" ""%%1"" %%*"
hkcr,"*\\shell\\SublimeText3","Icon",0x20000,"%1%\sublime_text.exe, 0"
hkcr,"Directory\shell\SublimeText3",,,"用 SublimeText3 打开"
hkcr,"Directory\shell\SublimeText3\command",,,"""%1%\sublime_text.exe"" ""%%1"""
hkcr,"Directory\\shell\\SublimeText3","Icon",0x20000,"%1%\sublime_text.exe, 0"
复制以上代码,用ansi 编码 ,保存为add_right_menu.inf ,存放到sublime text 根目录。右键文件,安装,即可
其他软件类似
[Version]
Signature="$Windows NT$"
[DefaultInstall]
AddReg=HbuilderX
[HbuilderX]
hkcr,"*\\shell\\HbuilderX",,,"用 HbuilderX 打开"
hkcr,"*\\shell\\HbuilderX\\command",,,"""%1%\HbuilderX.exe"" ""%%1"" %%*"
hkcr,"*\\shell\\HbuilderX","Icon",0x20000,"%1%\HbuilderX.exe, 0"
hkcr,"Directory\shell\HbuilderX",,,"用 HbuilderX 打开"
hkcr,"Directory\shell\HbuilderX\command",,,"""%1%\HbuilderX.exe"" ""%%1"""
hkcr,"Directory\\shell\\HbuilderX","Icon",0x20000,"%1%\HbuilderX.exe, 0"
[Version]
Signature="$Windows NT$"
[DefaultInstall]
AddReg=VScode
[VScode]
hkcr,"*\\shell\\VScode",,,"用 VScode 打开"
hkcr,"*\\shell\\VScode\\command",,,"""%1%\Code.exe"" ""%%1"" %%*"
hkcr,"*\\shell\\VScode","Icon",0x20000,"%1%\Code.exe, 0"
hkcr,"Directory\shell\VScode",,,"用 VScode 打开"
hkcr,"Directory\shell\VScode\command",,,"""%1%\Code.exe"" ""%%1"""
hkcr,"Directory\\shell\\VScode","Icon",0x20000,"%1%\Code.exe, 0"
删除右键菜单
一、点击左下角“开始”菜单
二、点击“运行”打开运行窗口
三、输入“regedit”后点击“确定”按钮打开注册表
四、依次展开HKEY_CLASSES_ROOT*\shell
在shell展开项中找到要删除的无用项,然后右键点击该项删除,即可清除右键菜单中的对应选项。
五、依次展开HKEY_CLASSES_ROOT\Directory\shell
在shell展开项中找到要删除的无用项,然后右键点击该项删除,即可清除右键菜单中的对应选项。