You can do it like this

Code:
 alias _write {
  var %w = 1, %s, %file = [color:red]YOUR.ini[/color]
  while $ini(%file,%w) {
    %s = $v1
    if ( $readini(%file,%s,$1) != $null ) writeini -n %file %s $1 $2
    inc %w
  }
}

 


Syntax: /_write item N

Sample: /_write value2 0

It will loop to each section then check if value2 exists & write 0.

** Change YOUR.ini


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!