ZTree.com  | ZEN  | About...  

 Index   Back

[Discuss] INI file management from command line?   [Discuss]

By: Paul Laufer       
Date: Aug 30,2017 at 11:09

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].

Thread locked

Messages in this Thread

94,800 Postings in 11,952 Threads, 348 registered users, 14 users online (0 registered, 14 guests)
Index | Admin contact |   Forum Time: Mar 29, 2020 - 11:20 am EDT  |  Hits:30,507,498  (3,792 Today )
RSS Feed