Reading Registry value...

Discussion in 'ASP General' started by vishal singh, Sep 5, 2003.

  1. vishal singh

    vishal singh Guest

    Hi,
    I am trying to read a value from a registry key using
    RegRead method but it does not seem to work. Here's the
    code that I am using:

    Dim objShell
    Dim strDBName=""

    Set objShell=Server.CreateObject("WScript.Shell")

    strDBName=objShell.RegRead("HKCU\Software\VB and VBA
    Program Settings\excalibur\RegParams\DatabaseName")

    But this always gives an error "Invalid root in registry
    key".

    Is there any other/better way of doing this?

    An help with some sample code will be greatly appreciated.

    Thanks,
    Vishal.







    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    vishal singh, Sep 5, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. HK
    Replies:
    1
    Views:
    3,649
    Cowboy \(Gregory A. Beamer\)
    Apr 1, 2004
  2. Replies:
    0
    Views:
    757
  3. Leny
    Replies:
    3
    Views:
    16,934
    Daniel
    Feb 1, 2005
  4. Collin Miller
    Replies:
    10
    Views:
    607
    Roger Pack
    Jul 9, 2010
  5. Reading registry value

    , Apr 21, 2006, in forum: Perl Misc
    Replies:
    4
    Views:
    89
    Tad McClellan
    Apr 22, 2006
Loading...

Share This Page