

SET WebStormIconPath=d:\dev\apps\jetbrains\shell-scripts\webstorm.icoĮcho Adding file add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_SZ /v "" /d "Open with WebStorm" add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormIconPath%,0" add "HKEY_CLASSES_ROOT\*\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /fĮcho Adding within a folder add "HKEY_CLASSES_ROOT\Directory\Background\shell\WebStorm" /t REG_SZ /v "" /d "Open with WebStorm" add "HKEY_CLASSES_ROOT\Directory\Background\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormIconPath%,0" add "HKEY_CLASSES_ROOT\Directory\Background\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%V\"" /fĮcho Adding folder add "HKEY_CLASSES_ROOT\Directory\shell\WebStorm" /t REG_SZ /v "" /d "Open with WebStorm" add "HKEY_CLASSES_ROOT\Directory\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormIconPath%,0" add "HKEY_CLASSES_ROOT\Directory\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f SET WebStormPath=d:\dev\apps\jetbrains\shell-scripts\webstorm.cmd


You just specify a folder where to generate these scripts. You can enable an option in Toolbox to generate Shell scripts.
WEBSTORM NEW FILE MENU EDIT ACTION ICON INSTALL
SET PhpStormPath=D:\Programs\JetBrains\PhpStorm 2018.1.6\bin\PhpStorm64.exeĮcho Adding file add "HKEY_CLASSES_ROOT\*\shell\PhpStorm" /t REG_SZ /v "" /d "Open in PhpStorm" add "HKEY_CLASSES_ROOT\*\shell\PhpStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PhpStormPath%,0" add "HKEY_CLASSES_ROOT\*\shell\PhpStorm\command" /t REG_SZ /v "" /d "%PhpStormPath% \"%%1\"" /fĮcho Adding within a folder add "HKEY_CLASSES_ROOT\Directory\Background\shell\PhpStorm" /t REG_SZ /v "" /d "Open with PhpStorm" add "HKEY_CLASSES_ROOT\Directory\Background\shell\PhpStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PhpStormPath%,0" add "HKEY_CLASSES_ROOT\Directory\Background\shell\PhpStorm\command" /t REG_SZ /v "" /d "%PhpStormPath% \"%%V\"" /fĮcho Adding folder add "HKEY_CLASSES_ROOT\Directory\shell\PhpStorm" /t REG_SZ /v "" /d "Open with PhpStorm" add "HKEY_CLASSES_ROOT\Directory\shell\PhpStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PhpStormPath%,0" add "HKEY_CLASSES_ROOT\Directory\shell\PhpStorm\command" /t REG_SZ /v "" /d "%PhpStormPath% \"%%1\"" /fĬan this script be modified to not rely on specific path to WebStorm so I won't need to redo this every time I install some new version of Webstorm?

SET WebStormPath =C:\Program Files\JetBrains\WebStorm 2017.2.2\bin\webstorm64.exeĮcho Adding file reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm " /t REG_SZ /v " " /d "Open with WebStorm " reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm " /t REG_EXPAND_SZ /v "Icon " /d " %WebStormPath%,0 " reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm\command " /t REG_SZ /v " " /d " %WebStormPath% \ " %%1\ " " /fĮcho Adding within a folder reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\WebStorm " /t REG_SZ /v " " /d "Open with WebStorm " reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\WebStorm " /t REG_EXPAND_SZ /v "Icon " /d " %WebStormPath%,0 " reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\WebStorm\command " /t REG_SZ /v " " /d " %WebStormPath% \ " %%V\ " " /fĮcho Adding folder reg add "HKEY_CLASSES_ROOT\Directory\shell\WebStorm " /t REG_SZ /v " " /d "Open with WebStorm " reg add "HKEY_CLASSES_ROOT\Directory\shell\WebStorm " /t REG_EXPAND_SZ /v "Icon " /d " %WebStormPath%,0 " reg add "HKEY_CLASSES_ROOT\Directory\shell\WebStorm\command " /t REG_SZ /v " " /d " %WebStormPath% \ " %%1\ " " /f :: change the path below to match your installed version
