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

320 views      
Thread locked
 

Messages in this Thread

 
94,426 Postings in 11,918 Threads, 348 registered users, 7 users online (0 registered, 7 guests)
Index | Admin contact |   Forum Time: Sep 22, 2019 - 2:02 am EDT  |  Hits:28,655,371  (213 Today )
RSS Feed