Read
Read is a function used to read values of registry keys.
Syntax
Read(Path, ValueName)
Returns
- Long - if registry value is REG_DWORD
- String - if registry value is REG_SZ
- Array of Strings - If registry value is REG_MULTI_SZ
- Array of bytes - if registry value is REG_BINARY
Example
This script Gets the version of Internet Explorer by reading it directly from the registry:
Function Main
Dim Ro As Object
Dim ie_version as string
Set Ro = Registry.Connect("127.0.0.1")
ie_version = ro.Read("SOFTWARE\Microsoft\Internet Explorer\Version Vector", "IE")
echo "IE Version is " + ie_version
End Function