{"id":28316363,"url":"https://github.com/naftaliprojects/vbs-.ini-file-handler","last_synced_at":"2026-01-25T06:37:53.208Z","repository":{"id":294727469,"uuid":"987891285","full_name":"NaftaliProjects/vbs-.ini-file-Handler","owner":"NaftaliProjects","description":"Robust VBScript functions to **read from** and **overwrite values** in `.ini` files, supporting any kind of file encoding.   Most of the code is a collection of snippets that have been modified and assembled together. :)","archived":false,"fork":false,"pushed_at":"2025-05-21T18:41:04.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T06:40:02.743Z","etag":null,"topics":["encoding","include","ini-parser","parser","vbscript"],"latest_commit_sha":null,"homepage":"","language":"VBScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NaftaliProjects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-21T18:35:54.000Z","updated_at":"2025-05-21T18:43:56.000Z","dependencies_parsed_at":"2025-05-21T19:48:08.064Z","dependency_job_id":"976977bd-2742-4ef8-9cf0-ea7eee004547","html_url":"https://github.com/NaftaliProjects/vbs-.ini-file-Handler","commit_stats":null,"previous_names":["naftaliprojects/vbs-.ini-file-handler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NaftaliProjects/vbs-.ini-file-Handler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaftaliProjects%2Fvbs-.ini-file-Handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaftaliProjects%2Fvbs-.ini-file-Handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaftaliProjects%2Fvbs-.ini-file-Handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaftaliProjects%2Fvbs-.ini-file-Handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NaftaliProjects","download_url":"https://codeload.github.com/NaftaliProjects/vbs-.ini-file-Handler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaftaliProjects%2Fvbs-.ini-file-Handler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28746762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T05:12:38.112Z","status":"ssl_error","status_checked_at":"2026-01-25T05:04:50.338Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["encoding","include","ini-parser","parser","vbscript"],"created_at":"2025-05-25T02:11:25.673Z","updated_at":"2026-01-25T06:37:53.194Z","avatar_url":"https://github.com/NaftaliProjects.png","language":"VBScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vbs iniHandler\n\n## About  \nRobust VBScript functions to **read from** and **overwrite values** in `.ini` files, supporting any kind of file encoding.  \nMost of the code is a collection of snippets that have been modified and assembled together. :)\n\n## Requirements  \n- VBScript (VBS) only\n\n## Project Structure  \nThis project includes two files:\n\n1. **`getFileEncoding.vbs`**  \n   Determines the file's encoding type.  \n   _(Logic adapted from [Rob van der Woude’s script](https://www.robvanderwoude.com/vbstech_files_encoding.php) and turned into a function that returns the correct parameter for `OpenTextFile()`.)_\n\n2. **`iniHandler.vbs`**  \n   Provides two functions:\n   - `WriteToIni(path, section, key, newValue)`\n   - `readFromIni(path, section, key)`\n\n## How to Use  \n1. Copy both files into your working directory.\n\n2. In your script, use the following to include the functions:\n\n    ```vbscript\n    '--------------------------\n    ' Import other functions\n    Sub Include(strFile)\n        Set objFSO = CreateObject(\"Scripting.FileSystemObject\")\n        Set objTextFile = objFSO.OpenTextFile(strFile, 1)\n        ExecuteGlobal objTextFile.ReadAll\n        objTextFile.Close\n        Set objFSO = Nothing\n        Set objTextFile = Nothing\n    End Sub\n\n    ' Include handlers\n    Include(\"iniHandler.vbs\")\n    '--------------------------\n    ```\n\n3. Example usage:\n\n    ```vbscript\n    value = readFromIni(\"file.ini\", \"section\", \"key\")\n    WriteToIni(\"file.ini\", \"section\", \"key\", \"newValue\")\n    ```\n\n## Notes  \n- Currently does **not** support appending new sections or keys. This may be added in the future.\n\nEnjoy! 😃  \n\n## References  \n- https://blog.ctglobalservices.com/scripting-development/jgs/include-other-files-in-vbscript/  \n- https://www.robvanderwoude.com/vbstech_files_encoding.php  \n- https://www.robvanderwoude.com/vbstech_files_ini.php\n\"# vbs-.ini-file-Handler\" \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaftaliprojects%2Fvbs-.ini-file-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaftaliprojects%2Fvbs-.ini-file-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaftaliprojects%2Fvbs-.ini-file-handler/lists"}