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

  • From: Juan Carlos Reyes Pacheco <juancarlosreyesp@xxxxxxxxx>
  • To: "Radoulov, Dimitre" <cichomitiko@xxxxxxxxx>
  • Date: Wed, 12 Oct 2005 08:56:32 -0400

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
--
//www.freelists.org/webpage/oracle-l

Other related posts: