ZTree.com  | ZEN  | About...  

 Index   Back

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

By: Paul Laufer       
Date: Aug 30,2017 at 15: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].

1,024 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 83 users online (0 registered, 83 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 5:59 am UTC  |  Hits:62,394,395  (9,181 Today )
RSS Feed