<!-- Oracle Remote Diagnostic Agent / Data Collection Results 4.29 -->
<!-- Module:S301WREQ Version:1.48 Report:log_getproperty_cmd OS:linux -->
---+ Display of getproperty.cmd File
---## Information Taken from /u01/install/APPS/fs1/FMW_Home/oracle_common/common/bin/getproperty.cmd
<verbatim:stat>
 -rw-r----- 1 applmgr oinstall 567  Apr 21 18:24 2015  Apr 21 18:17 2015  getproperty.cmd
</verbatim>
<verbatim>
@ECHO OFF

IF "%1"=="" (
  ECHO ERROR: Missing required arguement ^<properties_file^>!
  GOTO USAGE
)
IF "%2"=="" (
  ECHO ERROR: Missing required arguement ^<property_name^>!
  GOTO USAGE
)
IF "%3"=="" (
  ECHO ERROR: Missing required arguement ^<env_var^>!
  GOTO USAGE
)


SET PROPERTIES_FILE=%1
SET PROPERTY_NAME=%2
SET ENV_VAR=%3
SET %ENV_VAR%=

FOR /F "usebackq delims== tokens=1-2" %%i IN (`findstr /b /c:"%PROPERTY_NAME%=" %PROPERTIES_FILE%`) DO SET %ENV_VAR%=%%j

GOTO :EOF

:USAGE
ECHO USAGE: %0 ^<properties_file^> ^<property_name^> ^<env_var^>
EXIT /B 1

</verbatim>
[[#Top][Back to top]]
