How to get oracle_home from regedit to a DOS variable -- -----test.bat @(protected) 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