getreg

getreg <character variable>,<character string>,<variable name>

Opens the registry and queries for a variable.
Will search only in HKEY_CURRENT_USER.

    EX)getreg $0,"software\leaf\toheart","datadir"