find oracle home in batch file.

find oracle home in batch file.

 

  

Gurus,



I am in the process of writing dbca command line tool to create an
oracle instance on Windows. (Oracle 10g)

Before installing I need to remove the current database. I am trying to
use "reg query" to find out the ORACLE_HOME.

Is there an easy way to find out the ORACLE_HOME from the batch file
other than using the registry command line ?



Note : echo command will not work, because the environment will not be
set when I am running the tool.



Thanks for your help



Mohan








Oracle LazyDBA home page