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: Radoulov, Dimitre <cichomitiko_at_gmail.com>
Date: Tue, 11 Oct 2005 21:32:31 +0200
Message-ID: <008101c5ce9a$88879700$bc00a8c0@IBME1D11967173>


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-l
Received on Tue Oct 11 2005 - 14:34:52 CDT

Original text of this message

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