回复 2# DAIC - set REG_PATH=HKEY_CURRENT_USER\Environment
- reg add %REG_PATH% /v JAVA_HOME /t REG_SZ /d "${JAVA_HOME}" /f
- reg add %REG_PATH% /v TOMCAT_HOME /t REG_SZ /d "${TOMCAT_HOME}" /f
- reg add %REG_PATH% /v HWORKDIR /t REG_SZ /d "${HWORKDIR}" /f
- reg add %REG_PATH% /v APP_SVR_PORT /t REG_SZ /d "${APP_SVR_PORT}" /f
- reg add %REG_PATH% /v APP_SVR_IP /t REG_SZ /d "127.0.0.1" /f
- reg add %REG_PATH% /v LICENSE_PATH /t REG_SZ /d "%HWORKDIR%\conf\protims.license" /f
- reg add %REG_PATH% /v APP_SVR_HOME /t REG_SZ /d "/opt/bea/wlserver_10.3" /f
- reg add %REG_PATH% /v LD_LIBRARY_PATH /t REG_SZ /d "%LD_LIBRARY_PATH%;%HWORKDIR%\lib;%HWORKDIR%\ModemTool\Modem_Tool;" /f
- reg add %REG_PATH% /v IBS_NODE_NAME /t REG_SZ /d "IBS_NODE_%APP_SVR_IP%" /f
- reg add %REG_PATH% /v HOME /t REG_SZ /d "%homepath%" /f
复制代码 这是在一个批处理里面的代码,这些代码执行后,在另一个批处理里面调用的时候要得到JAVA_HOME,TOMCAT_HOME,HWORKDIR等的值,应该怎么弄? |