Можно вот так.
Это не затронет дефолтное поведение пункта
"Изменить", но добавит новый пункт меню -
"Изменить в Sublime", а при нажатом
SHIFT также появится пункт
"Изменить в Sublime от Админа". В том числе у каталогов.
@echo off
chcp 65001
SET admin_st4_path=powershell Start-Process 'Path\To\sublime_text.exe' -Verb runAs
SET st4_path=Path\To\Sublime\sublime_text.exe
SET st4_label_edit=Изменить в Sublime
SET st4_label_admin_edit=Изменить в Sublime от Админа
SET st4_label_admin_open=Открыть в Sublime от Админа
SET st4_label=Открыть в Sublime
rem добавить для всех типов файлов
@reg add "HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text" /t REG_SZ /v "" /d "%st4_label_edit%" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st4_path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text\command" /t REG_SZ /v "" /d "%st4_path% \"%%1\"" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text as Admin" /t REG_SZ /v "" /d "%st4_label_admin_edit%" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text as Admin" /t REG_EXPAND_SZ /v "Icon" /d "%st4_path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text as Admin" /t REG_SZ /v "Extended" /d ""
@reg add "HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text as Admin\command" /t REG_SZ /v "" /d "%admin_st4_path% \"%%1\"" /f
rem добавить для папок
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Open with Sublime Text" /t REG_SZ /v "" /d "%st4_label%" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st4_path%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st4_path% \"%%V\"" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text" /t REG_SZ /v "" /d "%st4_label%" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st4_path%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st4_path% \"%%V\"" /f
rem добавить для папок от админа
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Open Sublime Text as Admin" /t REG_SZ /v "" /d "%st4_label_admin_open%" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Open Sublime Text as Admin" /t REG_EXPAND_SZ /v "Icon" /d "%st4_path%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Open Sublime Text as Admin" /t REG_SZ /v "Extended" /d "" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Open Sublime Text as Admin\command" /t REG_SZ /v "" /d "%admin_st4_path% \"%%V\"" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open Sublime Text as Admin" /t REG_SZ /v "" /d "%st4_label_admin_open%" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open Sublime Text as Admin" /t REG_EXPAND_SZ /v "Icon" /d "%st4_path%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open Sublime Text as Admin" /t REG_SZ /v "Extended" /d "" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open Sublime Text as Admin\command" /t REG_SZ /v "" /d "%admin_st4_path% \"%%V\"" /f
pause
Однако это вопрос не по Sablime text, а скорее по реестру Windows...