Open with Sublime Right Open

Open with Sublime

Sublime Right not open, you can use the following command to add a 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

@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

 

Save as, *. Bat file administrators to run on the line. Delete to delete the registry directly into the folder just fine. Registry path: HKEY_CLASSES_ROOT \ * \ shell \ SublimeText3 \ command

 

 

Source: Liu Juntao's blog welcome attention to public numbers, messages, comments, study together.

__________________________________________________________________________________

If any help to you, welcome donor support, your support is certainly the best I insisted (* ^ _ ^ *)

Guess you like

Origin www.cnblogs.com/lovebing/p/11750948.html