Open with Sublime 右键打开

满堂花醉三千客,一剑霜寒十四州。这篇文章主要讲述Open with Sublime 右键打开相关的知识,希望能为你提供帮助。
Open with Sublime
Sublime 的右键打开没有了,可以使用下面的bat命令添加。


@echo off
SET st3Path=D:\\Program Files\\Sublime Text\\sublime_text.exe


rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\\*\\shell\\Open with Sublime Text 3"/t REG_SZ /v "" /d "Open with Sublime" /f
@reg add "HKEY_CLASSES_ROOT\\*\\shell\\Open with Sublime Text 3"/t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\\*\\shell\\Open with Sublime Text 3\\command" /t REG_SZ /v "" /d "%st3Path% \\"%%1\\"" /f


rem add it for folders
@reg add "HKEY_CLASSES_ROOT\\Directory\\shell\\Open with Sublime Text 3"/t REG_SZ /v "" /d "Open with Sublime" /f
@reg add "HKEY_CLASSES_ROOT\\Directory\\shell\\Open with Sublime Text 3"/t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
【Open with Sublime 右键打开】@reg add "HKEY_CLASSES_ROOT\\Directory\\shell\\Open with Sublime Text 3\\command" /t REG_SZ /v "" /d "%st3Path% \\"%%1\\"" /f


rem add it for current folder
@reg add "HKEY_CLASSES_ROOT\\Directory\\Background\\shell\\Open with Sublime Text 3"/t REG_SZ /v "" /d "Open with Sublime" /f
@reg add "HKEY_CLASSES_ROOT\\Directory\\Background\\shell\\Open with Sublime Text 3"/t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\\Directory\\Background\\shell\\Open with Sublime Text 3\\command" /t REG_SZ /v "" /d "%st3Path% \\"%%v\\"" /f


pause


另存为,*.bat 文件,管理员运行,就行了。 删除的直接进入注册表删除文件夹就好了。注册表路径:HKEY_CLASSES_ROOT\\*\\shell\\SublimeText3\\command





__________________________________________________________________________________
若有帮助到您,欢迎捐赠支持,您的支持是对我坚持最好的肯定(*^_^*)
你要保守你心,胜过保守一切。
作者:刘俊涛的博客??







    推荐阅读