Racer's
Ini tool
Modifying
INI files in batch files with INI.exe. |
|
Ini is a small tool that is useful for
batch files needing to read and write ini files.
For more information on INI files themselves, see the
generic INI documentation.
Download the INI tool by clicking
on this line. (Windows only, 16Kb)
INI can do 3 things; read a key's value,
set a key's value or remove an entire tree from an ini file.
- Reading; 'ini <file> <key>'
will display the value of the key. For example, 'ini racer.ini race.track'
will display the track used for a race.
- Writing; 'ini <file> <key> <value>''
will set the value of the key to the specified value. For example, 'ini racer.ini
race.track carlswood_nt'. Use quotes (") if you need spaces in the value.
If the key does not yet exist, it is created. Note that with each write, the
complete ini file is rewritten (and therefore formatting will be modified
to the style that INI files normally adhere to).
- Removing; 'ini <file> remove <key>'
will remove an entire subtree of an ini file. Be careful when using this!
For example 'ini racer.ini remove log' (not useful, so don't actually run
this!).
(last
updated
November 13, 2012
)