My question is about parsing an ini file with the Windows command line.
I got stuck while trying remove a section with all keys from the file. The name of this section is known and saved in a variable.
I tried to save the lines (start, end) for removing the stuff between but it didn't work for me.
Can anyone here help me?
edit:
Here is an example ini file:
[Example]
cycle = value
cycle2 = value
cycle_bu = value
[Example2]
key1 = value
key2 = value
key3 = value
key4 = value
[something3]
key1 = value
key2 = value
key3 = value
key4 = value
key5 = value
key6 = value
http://www.robvanderwoude.com/sourcecode.php?src=readini_nt
Could you check if this will do the work?
EDIT: this is not tested: