Add "Open with Brackets" to Windows Explorer Context Menu

<pre name="code" class="plain">@echo off
SET st2Path=C:\Program Files (x86)\Brackets\Brackets.exe

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


rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Brackets"         /t REG_SZ /v "" /d "Brackets"   /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Brackets"         /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Brackets\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
pause

 

你可能感兴趣的:(Add "Open with Brackets" to Windows Explorer Context Menu)