Инструменты пользователя

Инструменты сайта


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

varName of the variable that will receive the value.
keyRegistry key name. Can begins with full hive name (for example, HKEY_USERS), or with short (for example, HKU).
paramParameter name. For retrieve «default» parameter, not set this or use empty value if you need default text.
defaultText that will be written to the variable, if registry reading error occured. If omitted, empty value will be written.

Switches

/HEXReturn REG_DWORD parameter as hex-string, else as decimal.
/I:xxxString 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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki