Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript and RegRead error

Status
Not open for further replies.

Turkbear

Technical User
Mar 22, 2002
8,631
US
This may have been asked and answered before, but a search didn't help...
On an asp page I want to read from the registry, but,
with the following code:
Code:
 Set objShell =CreateObject("WScript.Shell")
    GetConnection = objShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\WHS")
I get an
Error Type:
WshShell.RegRead (0x80070002)
Unable to open registry key "HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\WHS" for reading.

- I have checked and the Registry entry does exist..
Do I need to grant some kind of permissions for the browser to do this...?[dazed]

 
Hi Turkbear,

I'm just fishing but if the registry entry is a key rather than a value then the registry path will need a backslash on the end. To save typing you can also use the abbreviation HKLM rather than HKEY_LOCAL_MACHINE. Check out this link


for more information.

HTH [smile] mikey2nicey
"Dream, but don't quit your day job."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top