V
vishal singh
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.
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.