>The code works great! But how can I update or delete the key! I have tried wrting the key again with a different value, but I don't think that is the correct way
Function DeleteRegistry
Lparameters tcRegistryKey
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.
Dr. Ken A. McGinnis
Healthcare software design