-
-
Save roundand/9367852 to your computer and use it in GitHub Desktop.
@echo off | |
SET st3Path=C:\Program Files\Sublime Text 3\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 Text 3" /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\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
pause |
I've found a more complex solution that works also with admin privileges when used with the shift key.
sublimetext3-contextmenu
thanks its work for me on windows 7 x64bit !
Thank you!
Awesome!
Thanks! Worked on Windows 10 Virtual Machine using VirtualBox.
Nice Work
Windows 10, 64Bit
Базар жоқ, менен қазақша коментарий. Жасап тұр
how to remove the second? http://prntscr.com/pczh1f
Thanks!
works fine in Windows 10 64bits.
Hey... this gives me a lot of "Access Denied". Any help? Thanks
open cmd with admin privileges. cmd right click run as administrator
awesome trick. worked like a charm.
just had to run the file with admin privileges :)
thanks for this script, its useful!
how to remove it from system
Just amazing!!!!!!!!!
Thanks!!!
Thank you! Working with Microsoft Windows Pro 10.0.19041.
Nice!
It completely works. Thanks
very nice
I've found a more complex solution that works also with admin privileges when used with the shift key.
sublimetext3-contextmenu
Works Perfectly.. I think this is a best solution.
Still working on W10 x64. Thanks!