Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: How do I get a value from the windows registry to set a variable
Try this code in batch script:
@ECHO OFF
:: delims is a TAB followed by a space
FOR /F "tokens=2* delims= " %%A IN ('reg query HKLM\SOFTWARE\ORACLE\ /v
ORACLE_HOME') DO SET
ORACLE_HOME=%%B
ECHO ORACLE_HOME=%ORACLE_HOME%
HTH
Dimitre Radoulov
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Oct 11 2005 - 14:34:52 CDT