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: Tue, 11 Oct 2005 14:00:10 -0400
Message-ID: <cd4305c10510111100r792ed2cnabaa10c0049fdcf0@mail.gmail.com>


Niall,
I don't want to use vbscript for example, I'm only looking for a command line utility.
Any way I'll check the site, thanks

On 10/11/05, Niall Litchfield <niall.litchfield_at_gmail.com> wrote:
> Juan
>
> check out the windows scripting centre. (iirc its
> msdn.microsoft.com/scripting ) bags of example scripts to get use registry
> and envvars - and a good introduction to appropriate scripting on the
> windows platform as well.
>
> Niall
>
>
> On 10/11/05, Juan Carlos Reyes Pacheco <juancarlosreyesp_at_gmail.com> wrote:
> >
> > Hi I'm trying to get a variable from windows from a bat file but I cant.
> >
> > I had check the reg.exe utility but this give you more data than needed
> >
> > reg query
> KEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb10g_home1 /v
> oracle_home
> >
> > This returns all this information
> > -------------------
> > ! REG.EXE VERSION 3.0
> >
> > HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb10g_home1
> > oracle_home REG_SZ D:\oracle\product\10.2.0\db_1
> > -------------------
> >
> >
> > I only need somethin that returnsme the value to put it in a variable
> >
> > Thanks in advance.
> > --
> > Oracle Certified Profesional 9i 10g
> > Orace Certified Professional Developer 6i
> >
> > 8 years of experience in Oracle 7,8i,9i,10g and developer 6i
> > --
> > http://www.freelists.org/webpage/oracle-l
> >
>
>
>
> --
> Niall Litchfield
> Oracle DBA
> http://www.niall.litchfield.dial.pipex.com

--
Oracle Certified Profesional 9i 10g
Orace Certified Professional Developer 6i

8 years of experience in Oracle 7,8i,9i,10g and developer 6i
--
http://www.freelists.org/webpage/oracle-l
Received on Tue Oct 11 2005 - 13:25:40 CDT

Original text of this message

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