Note that using /write -s or -w like that to replace the section's name is not 'proper' and will not work in some cases, using proper ini commands as suggested will ensure that it works in all cases.

Certainly, doing it properly requires a while loop currently, maybe /writeini could get a new switch which means to replace the section's name: /writeini -r file.ini oldsection newsection


#mircscripting @ irc.swiftirc.net == the best mIRC help channel