Open with Sublime
Sublime 的右键打开没有了,可以使用下面的bat命令添加。
@echo off
SET st3Path=D:Program FilesSublime Textsublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT*shellOpen with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime" /f
@reg add "HKEY_CLASSES_ROOT*shellOpen with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT*shellOpen with Sublime Text 3command" /t REG_SZ /v "" /d "%st3Path% "%%1"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOTDirectoryshellOpen with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime" /f
@reg add "HKEY_CLASSES_ROOTDirectoryshellOpen with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOTDirectoryshellOpen with Sublime Text 3command" /t REG_SZ /v "" /d "%st3Path% "%%1"" /f
rem add it for current folder
@reg add "HKEY_CLASSES_ROOTDirectoryBackgroundshellOpen with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime" /f
@reg add "HKEY_CLASSES_ROOTDirectoryBackgroundshellOpen with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOTDirectoryBackgroundshellOpen with Sublime Text 3command" /t REG_SZ /v "" /d "%st3Path% "%%v"" /f
pause
另存为,*.bat 文件,管理员运行,就行了。 删除的直接进入注册表删除文件夹就好了。注册表路径:HKEY_CLASSES_ROOT*shellSublimeText3command
文章来源:刘俊涛的博客 欢迎关注公众号、留言、评论,一起学习。
__________________________________________________________________________________
若有帮助到您,欢迎捐赠支持,您的支持是对我坚持最好的肯定(*^_^*)