Last active
August 29, 2015 14:27
-
-
Save oglops/bda0377f749f408be369 to your computer and use it in GitHub Desktop.
有时候也许会想自己指定安装目录在哪
This file contains 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 | |
if "%~1"=="" ( | |
echo use default houdini install location: | |
set "H=C:\Program Files\Side Effects Software\Houdini 14.0.395" | |
) else ( | |
set H=%1 | |
) | |
:: strip quotes if they exist | |
set HBASE=%H% | |
echo %HBASE% | |
:: get houdini version | |
for %%v in (%HBASE:"=%) do set HOUDINI_VERSION=%%v | |
:: convert to 8.3 short name | |
for %%f in (%HBASE%) do set H=%%~sf | |
:: replace \ with / | |
set H=%H:\=/% | |
set HB=%H%/bin | |
set HD=%H%/demo | |
set HFS=%H% | |
set HH=%H%/houdini | |
set HHC=%H%/houdini/config | |
set HSITE=%H%/site | |
set HT=%H%/toolkit | |
set HTB=%H%/toolkit/bin | |
:: extended syntax just in case if there are spaces in %PATH% | |
set "PATH=%H%/bin;%H%/toolkit/bin;%PATH%" | |
set HBASE= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment