Skip to content

Instantly share code, notes, and snippets.

@stmn
Created November 29, 2015 15:30
Show Gist options
  • Save stmn/d03a89b4741032d1e7a4 to your computer and use it in GitHub Desktop.
Save stmn/d03a89b4741032d1e7a4 to your computer and use it in GitHub Desktop.
How to run PhpStorm project through batch file
FOR /F "skip=2 tokens=2,*" %%A IN ('reg.exe query "HKEY_CLASSES_ROOT\Applications\PhpStorm.exe\shell\open\command" /ve') DO ( SET PHPSTORM_PATH=%%B )
SET PHPSTORM_PATH=%PHPSTORM_PATH:"%1"=%
START "" "%PHPSTORM_PATH%" %~dp0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment