Your best option would be to just not use []'s as part of the section name.

/writeini -n filename something n1 some text

This would, of course, mean that you'd have to change your current INI file(s) to remove those extra []'s, but it saves you the problem and then it would work regardless of version.

Note that you can also check $version and have your script do something different based on what version is being used.

Last edited by Riamus2; 27/09/11 06:20 PM.