07-16-2008, 06:36 PM
How to read registry values using DotNetFactory in QTP?
I tried the following code,but it is giving some error.
PLease suggest if i am missing any steps.
I tried the following code,but it is giving some error.
Code:
Set regVersion = DotNetFactory.CreateInstance("Microsoft.Win32.RegistryKey")
RegKeyFinal = regVersion.OpenSubKey("SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon",True)
msgbox RegKeyFinal.GetValue("ParseAutoexec")
PLease suggest if i am missing any steps.