Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: How do I get a value from the windows registry to set a variable

Re: How do I get a value from the windows registry to set a variable

From: Juan Carlos Reyes Pacheco <juancarlosreyesp_at_gmail.com>
Date: Wed, 12 Oct 2005 08:56:32 -0400
Message-ID: <cd4305c10510120556u5f7624d0l87da0aece24df056@mail.gmail.com>


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-l
Received on Wed Oct 12 2005 - 07:58:48 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US