WshShell.RegRead

Read a value from the Registry
Syntax
strValue = WshShell.RegRead(strRegistryKey\)
strValue = WshShell.RegRead(strRegistryValue)

Arguments:

The Registry key or value must start with one of
the following

HKEY_CURRENT_USER or HKCU
HKEY_USERS
HKEY_LOCAL_MACHINE or HKLM
HKEY_CLASSES_ROOT or HKCR
HKEY_CURRENT_CONFIG

Example

Set WshShell = Wscript.CreateObject("Wscript.Shell")
strIconSetting = WshShell.RegRead("HKCU\Control Panel\Desktop\IconSpacing")
WScript.Echo strIconSetting 

Make a Free Website with Yola.