I found myself with a project this AM where a program I support had duplicate [Sections] in several INI files. There were many INI files involved, and the dupes were in just some of them.
It dawned on me that I'm sure there's a decent Win32 utility out there that would have made this much easier than (V)iewing each file, (S)earching for the "[Section]" I'm concerned about, and seeing if it shows up more than once.
I looked around but mostly found Linux or Win16 utilities. Anyone have any suggestions for a batch file utility that I can throw into my toolkit?
What I would like it to do...
1) Detect if an INI has duplicate sections & optionally remove one of them.
2) Add or remove a section.
3) Add or remove a line item in a section.
4) Read or write a line item in a section.
I seem to recall a ZEP for CTL-Search to report the number of hits in files. That would have made this easier to locate dupe [Sections].