Created
May 6, 2018 03:07
-
-
Save DevYunus/4f0f5fb3092138c320ff254bf56393fc to your computer and use it in GitHub Desktop.
Open with PHP Storm - add PHPStrom in context menu windows 7,8,10
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 | |
| :: please change file path according to your installed path | |
| SET PHPStormPath=C:\Program Files\JetBrains\PhpStorm 2018.1.2\bin\phpstorm64.exe | |
| echo Adding file entries | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\PHPStorm" /t REG_SZ /v "" /d "Open with PHPStorm" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\PHPStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PHPStormPath%,0" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\PHPStorm\command" /t REG_SZ /v "" /d "%PHPStormPath% \"%%1\"" /f | |
| echo Adding within a folder entries | |
| @reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\PHPStorm" /t REG_SZ /v "" /d "Open with PHPStorm" /f | |
| @reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\PHPStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PHPStormPath%,0" /f | |
| @reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\PHPStorm\command" /t REG_SZ /v "" /d "%PHPStormPath% \"%%V\"" /f | |
| echo Adding folder entries | |
| @reg add "HKEY_CLASSES_ROOT\Directory\shell\PHPStorm" /t REG_SZ /v "" /d "Open with PHPStorm" /f | |
| @reg add "HKEY_CLASSES_ROOT\Directory\shell\PHPStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PHPStormPath%,0" /f | |
| @reg add "HKEY_CLASSES_ROOT\Directory\shell\PHPStorm\command" /t REG_SZ /v "" /d "%PHPStormPath% \"%%1\"" /f | |
| pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment