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
Thanks Dimitre this works fin for me
How to get oracle_home from regedit to a DOS variable
--------test.bat
@ECHO OFF
:: delims is a TAB followed by a space
FOR /F "tokens=3* " %%A IN ('reg query
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb10g_home1 /v ORACLE_HOME')
DO SET CURR_OH=%%A
ECHO Oracle home is %CURR_OH%
C:\Documents and Settings\JReyes.DAZASOFTWARE>C:\Downloads\test.bat Oracle home is D:\oracle\product\10.2.0\db_1
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Oct 12 2005 - 07:58:48 CDT