INI_SET

This command is used to change the value of an .ini file setting.

Syntax

INI_SET "file_path\ini_file_name", "section", "ini_setting", "value"

If you specify only an ini_file_name without the file_path, GainSeeker will look for this file in your Windows Folder.

If the ini_file_name is not found in the specified file_path, it will be created there.

.ini files use square brackets [ ] to specify the name of each section. Do not include these brackets when specifying the "section" parameter.

.ini files store information in the format ini_setting=value. Do not include the Equals symbol when specifying the "ini_setting" parameter.

Return value

This command returns the number 0.

Notes

However, if the filename parameter is a variable (for example: MySvar "Path"), use should only use two backslashes. Using three slashes in this event causes an error.

If you are upgrading from GainSeeker version 8.0 or earlier and using UNC paths, you must update your templates to reflect this.

Example

INI_SET "Cms.ini", "qa/s var", "email_override", "3"

This formula sets "email_override=3" in the "[qa/s var]" section of Cms.ini (in the Windows folder).