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

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


en:autorun:documentation:iniread

IniRead

IniRead <var> <ini> <section> <key> [<default value>]

Read the value from given configuration file.

Parameters

varName of the variable that will receive the value.
iniName of the ini-file. May contain variables and environment variables.
sectionSection name in the ini-file.
keyKey name in the ini-file.
default valueText that will be written to the variable, if key is absent in the file. If omitted, empty value will be written.

Switches

/RThe command will take into account the presence of the RedirectSection key in the given section.

Related

IniDelete, IniWrite

Example

Reads from the Total Commander configuration the value of the «test» key in the «Configuration» section:

IniRead MYVAR %COMMANDER_INI% "Configuration" "test"
en/autorun/documentation/iniread.txt · Последнее изменение: 2022/09/25 16:16 — loopback

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki