Secure Tag |
Return to Tag List |
|
The READREG tag offers read access to the Windows registry. Single values, or enumerated
list of keys (or values) can be retrieved with READREG. To retrieve a list of keys specify
TYPE="KEYS"; to enumerate values specify TYPE="VALUES".
Do not specify a PARAM value to have keys or values returned in a LIST (enumerated).
|
|
Attributes:
KEY | any high level key value (default is HKEY_LOCAL_MACHINE) |
SUBKEY | subkey value |
PARAM | parameter under subkey |
NAME | variable to receive data |
DEFAULT | value returned if PARAM not found |
TYPE | "keys" or "values" to enumerate |
|
|
|
The following is an example of READREG;
|
|
<!--- Read a registry value --->
<SAREADREG KEY="HKEY_LOCAL_MACHINE" SUBKEY=subKey
PARAM="newsserver" NAME=newsserver>
<!--- Enumerate registry values --->
<SAREADREG KEY="HKEY_LOCAL_MACHINE" TYPE="VALUES"
SUBKEY=subKey NAME=EnumList>
<!--- Enumerate ODBC datasources (enumerate keys) --->
<SAREADREG NAME=DS_List KEY="HKEY_LOCAL_MACHINE"
TYPE="KEYS" SUBKEY="SOFTWARE\ODBC\odbc.ini">
<SAOUTPUT>#ds_list[]#</SAOUTPUT>
|