Last active
May 18, 2016 05:30
-
-
Save arieljannai/28108cbc3a6b76356b00 to your computer and use it in GitHub Desktop.
Adds WebStorm entries to context menu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
@rem throw this file in jetbrains installation folder, it takes the last created WebStorm folder (the latest ide update) for the script | |
FOR /F "delims=" %%i IN ('dir /b /ad-h /t:c /od -filter "WebStorm*"') DO SET a=%%i | |
SET WebStormPath=C:\Program Files (x86)\JetBrains\%a%\bin\WebStorm64.exe | |
echo %WebStormPath% | |
echo Adding file entries | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in WebStorm" /t REG_SZ /v "" /d "Open in &WebStorm" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f | |
echo Adding folder entries | |
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open directory in WebStorm" /t REG_SZ /v "" /d "Open directory in &WebStorm" /f | |
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open directory in WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open directory in WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f | |
echo Adding folder background entries | |
@reg add "HKEY_CLASSES_ROOT\Directory\background\shell\Open directory in WebStorm" /t REG_SZ /v "" /d "Open directory in &WebStorm" /f | |
@reg add "HKEY_CLASSES_ROOT\Directory\background\shell\Open directory in WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\Directory\background\shell\Open directory in WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%V\"" /f | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment