Hi Don,
Here are some examples I got from Ken mcGinnis. Hope they help.
Function readregistry
Lparameters tcRegistryKey
* tcRegistryKey = registry key to read
* ex: "HKCC\System\CurrentControlSet\Control\Print\Printers\Default"
* These abbreviations may be used:
oShell = Createobject("WScript.Shell")
lcValue = oShell.RegRead(tcRegistryKey)
Function writeregistry
Lparameters tcRegistryKey, tcValue
oShell = Createobject("WScript.Shell")
lcValue = oShell.RegWrite(tcRegistryKey, tcValue)
Function DeleteRegistry
Lparameters tcRegistryKey
* tcRegistryKey = registry key to delete
* ex: "HKCC\System\CurrentControlSet\Control\Print\Printers\Default"
oShell = Createobject("WScript.Shell")
lcValue = oShell.RegDelete(tcRegistryKey)
Note: you must delete keys one at a time. In the example above delete in this order:
HKCC\System\CurrentControlSet\Control\Print\Printers\
HKCC\System\CurrentControlSet\Control\Print\
HKCC\System\CurrentControlSet\Control\
Note: the backslash at the end indicates a key (rather than a value)
use the .Regwrite() function to update.
Regards
Stuart Reid
True nobility lies not in being superior to another man, but in being superior to one’s previous self