I see lines in mirc.ini where there's an itemname but the data is blank, but I don't see /writeini being able to do this, since it considers a missing <value> to be a syntax error. Perhaps a switch for /writeini that would allow (or even require) the <value> parameter be blank. Perhaps -z as the switch letter.

Current syntax:

//remove test.ini | writeini test.ini section item value

creates a file containing the 2 lines

[section]
item=value

Additional syntax:

//remove test.ini | writeini -z test.ini section item

creates the file containing the 2 lines

[section]
item=

Rather than ignoring the value parm, it should be a syntax error to have a value string be present while using -z

Last edited by Khaled; 17/11/21 12:38 PM.