en:autorun:documentation:iniread
IniRead
IniRead <var> <ini> <section> <key> [<default value>]
Read the value from given configuration file.
Parameters
var | Name of the variable that will receive the value. |
ini | Name of the ini-file. May contain variables and environment variables. |
section | Section name in the ini-file. |
key | Key name in the ini-file. |
default value | Text that will be written to the variable, if key is absent in the file. If omitted, empty value will be written. |
Switches
/R | The command will take into account the presence of the RedirectSection key in the given section. |
Related
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