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

357 views      
Thread locked
 

Messages in this Thread

 
94,750 Postings in 11,946 Threads, 348 registered users, 20 users online (0 registered, 20 guests)
Index | Admin contact |   Forum Time: Feb 24, 2020 - 12:31 am EST  |  Hits:30,109,270  (366 Today )
RSS Feed