- Dwarfsoft [GPA] - https://www.dwarfsoft.com/blog -

VBScript INI File Handler

As you may know, I posted a while ago about how to handle INI files using VBScript [1] if you can’t use the Word.Application object System.PrivateProfileString function.

Over at CodeProject there has been a more recent submission which includes a VB.Net, C# and VBScript solution [2] that is a little more elegant than mine. It uses Regular Expressions to parse the INI File (which I would use now if I had been building it now), but still utilises the Scripting.Dictionary object for organising sections, keys and values.


Cheers, Chris.