mIRC Homepage
Posted By: Horstl /remini won't remove empty sections - 04/05/09 02:25 AM
If the section doesn't contain any item, /remini <inifile> <section> isn't removing the specified section from the file.
(v6.35 on WinXP, original thread/example code )

Thanks smile
Posted By: Zmodem Re: /remini won't remove empty sections - 09/05/09 05:46 AM
Confirmed here: mIRC 6.35 + WinXP SP3

A workaround for now:

Code:
alias _remini {
   :1
   .remini $1-
   if (!$3-) {
      if ($ini($1,$2)) { .writeini $1 $2 . . | goto 1 }
   }
}
© mIRC Discussion Forums