-
ModiREL: Read and edit REL/INI files.
Direct access to online help: ModiREL
Access the application from the menu: "Tools | Fine maintenance | Edit and reading of REL/INI files"
Presentation and options
Program to edit or read REL files or other type of file in INI format such as PAR, INI or INF files.
INI files are made up of sections, which are recognized by being at the beginning of lines with the name in square brackets. Each section can have, following its name, and on a new line, one or more keys, which are followed by an equal sign and by the value of the key. The order of the sections within the file is irrelevant, and so is the order of the keys within a section. Two keys with the same name in different sections are considered different keys. Blank lines are ignored. Comments can be included in lines starting with a semicolon. Example of the INI format:
[A_SECTION]
; This is a comment
AKey=Value
AnotherKey=Value2
[ANOTHER_SECTION]
AThirdKey=Value3
...
In option 5, the command file format allows each of the possible actions of the program, except 6, to be specified on consecutive lines of text. The INI file name must not be given, and all other parameters must be separated by a single space and enclosed in quotes if they contain spaces. For example, to change the name of a key, the following two actions can be chained:
1 A_SECTION TheKey "New Value"
2 A_SECTION TheKey
...
to obtain the INI file:
[A_SECTION]
TheKey2=New Value
...
The program options are:
1. Change the value of a key:
Modifies the value of a key
2. Delete a key:
Eliminates a key
3. Delete a section:
Eliminates a section
4. Rename a section:
Modifies a section name
5. Run multiple commands within the CommandFileName file on an INI file:
Carries out multiple commands within the CommandFileName file on an INI file
6. Reads the value of a key, and if the key is not found or is empty, returns the default value:
Reads the value of a key; if it is empty or it is not found, returns the default value. Displays the read value on the screen, unless /TXT= is specified, in which case it is sent to a text file.

Syntax
Syntax:
- ModiREL 1 INIFile Section Key Value [/CREAR] [/EXIST_SECCIO]
- ModiREL 2 INIFile Section Key
- ModiREL 3 INIFile Section
- ModiREL 4 INIFile Section NewNameSection
- ModiREL 5 INIFile CommandFileName
- ModiREL 6 INIFile Section Key DefaultValue [/TXT]
Options:
- 1:
Changes the value of a key
- 2:
Deletes a key
- 3:
Deletes a section
- 4:
Renames a section
- 5:
Runs multiple commands within the CommandFileName file on an INI file
- 6:
Reads the value of a key and if the key is not found or is empty, returns the default value. Displays the read value on the screen, unless /TXT= is specified, in which case it is sent to a text file.
Parameters:
- INIFile
(INI File -
Input parameter): INI File
- Section
(Section -
Input parameter): Section
- Key
(Key -
Input parameter): Key
- Value
(Value -
Input parameter): Value
- NewNameSection
(New section name -
Input parameter): New section name
- CommandFileName
(CommandFileName -
Input parameter): File that includes the commands to be executed.
- DefaultValue
(Default value -
Input parameter): Default value returned if a key is not found, or is empty
Modifiers:
/CREAR
(Create file)
If the INI file does not exist, creates the file with the requested key. (Input parameter) /EXIST_SECCIO
(Create key if section exists)
Only creates the key if the section exists. (Input parameter) /TXT
(Output TXT file)
Output TXT file where the result of the operation will be saved instead of being displayed on the screen. Only used for option 6. (Input parameter)
