I have been tasked to edit multiple configuration files on my company's proprietary software (Windows OS). These configuration files are in INI
file format (config.ini) which structures are composed of sections, properties, and values. The requirement is to:
Search for the section name and remove all corresponding properties on
config.ini
file.Example: Remove entire section
[RegistryService]
and its properties.[DummyProcessor] CCLTsVersion=112 ETransformsDescription= ETransformsVersion=0.0.0.0 LWTs=21.10.25 Transform=10.2.2.0 [RegistryService] LoadRegistry=1
Delete an entry from a different configuration file (not limited to section):
Example: Delete just line with
LoadRegistryManager=1
entry from:[DummyService] InitInstructions=0 ESAPsVersion= ESVersion=10.2 LoadRegistryManager=1
Can I use Windows command line batch scripting to make these edits?
Please provide an example. I am more comfortable with Linux commands and not as privy to Windows batch scripting aside of creating/deleting files and folders.