Hi All,
In our day to day system activities we do lot of additions, deletions and modifications in application settings.
Most of these configuration related items are stored in the form of an INI file or XML or in the registry.
After doing some modification to the AUT configuration in automation to verify the values in registry the below code is helpful
Syntax Call FetchRegistryKeyValue(Registrykeypath)
e.g. Call FetchRegistryKeyValue("HKLM\SOFTWARE\Microsoft\Internet Explorer\Version")
Sample code to fetch Internet Explorer version from registry
----------------------------------------------------------------------
Function FetchRegistryKeyValue(strRegKey)
Dim objWso
Set objWso = CreateObject("WScript.Shell")
FetchRegistryKeyValue = objWso.RegRead(strRegKey)
Set objWso = Nothing
End Function