NAME
RegistryTree2Dict — Make Tcl dict from Windows registry tree.
SYNOPSIS
RegistryTree2Dict CurrentRegKey ?CurrentDictName?
DESCRIPTION
Return Value
A dict that matches the given registry key and everything under it.
Arguments
CurrentRegKeyRegistry key.
CurrentDictNameName of dict to add to.
More Info
Creates and returns a Tcl dictionary that corresponds to all the Windows registry values and subkeys under the given key. Each entry key is either a registry value name or a registry subkey name. Each entry value is either registry value data or the contents of a subkey (which makes it a subdictionary).

This command is currently set up to firstly add all registry values to the dict, and secondly add all subkeys and their contents. There is, as yet, no option to mix keys and values in alphabetical order.


For information regarding exceptions / errors, see here.
EXAMPLES
% set TargetRegKey {HKEY_LOCAL_MACHINE\SOFTWARE\My}
% set MyDict [dict create one uno two dos]
one uno two dos
% Dict2RegistryTree $TargetRegKey MyDict
% set MyDict2 [RegistryTree2Dict $TargetRegKey]
% PrintDict $MyDict2
uno one
two dos
SEE ALSO
Dict2RegistryTree
KEYWORDS
conversion, dict, registry