Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- SET AppKey=SublimeText3
- SET AppTitle=Open with Sublime Text 3
- SET AppPath=C:\Program Files\Sublime Text 3\sublime_text.exe
- SET AppIcon=%AppPath%,0
- rem add it for all file types
- REG ADD "HKEY_CLASSES_ROOT\*\shell\%AppKey%" /ve /f /d "%AppTitle%"
- REG ADD "HKEY_CLASSES_ROOT\*\shell\%AppKey%" /v "Icon" /f /d "%AppIcon%"
- REG ADD "HKEY_CLASSES_ROOT\*\shell\%AppKey%\command" /ve /f /d "%AppPath% \"%%1\""
- rem add it for folders
- REG ADD "HKEY_CLASSES_ROOT\Directory\shell\%AppKey%" /ve /f /d "%AppTitle%"
- REG ADD "HKEY_CLASSES_ROOT\Directory\shell\%AppKey%" /v "Icon" /f /d "%AppIcon%"
- REG ADD "HKEY_CLASSES_ROOT\Directory\shell\%AppKey%\command" /ve /f /d "%AppPath% \"%%v\""
- rem add it for current folder
- REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\%AppKey%" /ve /f /d "%AppTitle%"
- REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\%AppKey%" /v "Icon" /f /d "%AppIcon%"
- REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\%AppKey%\command" /ve /f /d "%AppPath% \"%%v\""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement