Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • file
    The property/option file path to read from.
  • type := "options" | "ini" | "xml" (optional, defaults to "options")
    The file type, must be "options" to read options or properties.
  • key
    The option or property key to read the value for.
  • escape := "true" | "false" (optional: defaults to "true")
    Whether to apply escape sequences escaped by backslashes, like defined for Java properties files.
    Set "false" especially if you want to read values with backslashes where backslashes are not assumed to introduce escape sequences, like Windows paths.

The attribute type="options" is to be used to make this file parsed as an option file. Separators between the key and value might be for instance '=', ':' including their escaped variants '\=', '\:', where leading and trailing whitespaces are trimmed off.

...

  • file
    The INI file path to read from.
  • type := "options" | "ini" | "xml" (optional, defaults to "options")
    The file type, must be "ini" to read INI keys.
  • section
    The INI section to lookup the entry in.
  • key
    The INI entry key to read the value for.
  • escape := "true" | "false" (optional: defaults to "true")
    Whether to apply escape sequences escaped by backslashes, like defined for Java properties files.
    Set "false" especially if you want to read values with backslashes where backslashes are not assumed to introduce escape sequences, like Windows paths.

Example:

Code Block
titleAssigning a dynamic variable from an INI file value
langxml
<dynamicvariables>
    <variable name="ini.1" checkonce="true"
              file="C:/Program Files/freesshd/FreeSSHDService.ini" type="ini"
              section="SSH server" key="SSHCMD"/>
</dynamicvariables>

...