# VBScript: Access to INI and Registy

**URL:** https://www.finalbuilder.com/forums/t/vbscript-access-to-ini-and-registy/7147
**Category:** Feature Requests
**Tags:** finalbuilder
**Created:** [November 25, 2021, 11:25am UTC](https://www.finalbuilder.com/forums/t/vbscript-access-to-ini-and-registy/7147 "2021-11-25T11:25:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![service](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/46a35a/32.png) [@service](https://www.finalbuilder.com/forums/u/service)
#### Post date: [November 25, 2021, 11:25am UTC](https://www.finalbuilder.com/forums/t/vbscript-access-to-ini-and-registy/7147/1 "2021-11-25T11:25:16Z")

</div>

There are already some functions: GetValueFromIniFile and SetValueInIniFile

But it would be nice if there were a few more functions:

GetSectionsFromIniFile(AIniFile)  
GetSectionKeysFromIniFile(AIniFile, ASection)

GetKeysFromRegistry(AKeyPath)  
GetKeyValuesFromRegistry(AKeyPath)  
GetValueFromRegistry(AKeyPath, AName, ADefault)  
SetValueInRegistry(AKeyPath, AName, AValue, ARegType)  
RemoveValueInRegistry(AKeyPath, AName)

ARegType: Default=REG\_SZ or current typ if Value exists

- 

Assembled from individual actions, such loops are slow  
and we would have liked to have implemented it as one script.  
INI: Ini File Iterator  
Registry: Export Registry Key + Ini File Iterator + StrinReplace (to remove " , etc.)

Self-made solutions for INI in VBScript and PowerShell are not necessarily pretty.
