en:autorun:documentation2x:regread
RegRead
RegRead [/HEX] [/I:xxx] <var> <key> [<param> [<default>]]
Read the registry value. Supported types: REG_DWORD, REG_SZ, REG_EXPAND_SZ, REG_MULTI_SZ, REG_BINARY (return hex-string). If you need to retieve default paramter, don't set parameter, or set it to empty in case you need to use default text.
Parameters
var | Name of the variable that will receive the value. |
key | Registry key name. Can begins with full hive name (for example, HKEY_USERS), or with short (for example, HKU). |
param | Parameter name. For retrieve «default» parameter, not set this or use empty value if you need default text. |
default | Text that will be written to the variable, if registry reading error occured. If omitted, empty value will be written. |
Switches
/HEX | Return REG_DWORD parameter as hex-string, else as decimal. |
/I:xxx | String index (starting with 1) for REG_MULTI_SZ parameters. If not set, whole string return? separated by linebreaks. |
en/autorun/documentation2x/regread.txt · Последнее изменение: 2013/02/06 13:28 — 127.0.0.1