REXXINI

Version: 
1.0.0
Release date: 
Tuesday, 11 September, 2018

License:

Interface:

Authors/Port authors:

Rexx API's for manipulation of Text Based INI Files (used by WINOS2). Useful for manipulating and fixing text ini files used by DOS and windows programs.

This software is distributed in two modes:
  • as compressed package that you have to download and manually install; if prerequisites are required, you will have to manually install them too;
  • as RPM package; you can install it using your favorite rpm package manager, that will take care to download and install both the software and its prerequisites.
Choose the installation mode that you prefer. Please note that not all the versions are available in both the installation modes.

Installation with rpm

This program is installable using the rpm package manager. See below for the install string. Required prerequisites are automatically processed by the package manager and, if needed, downloaded and installed.

rexxini-1.0.0-3.oc00 (11/09/2018)
Repository: Netlabs stable
R E X X I N I Rexx API's for manipulation of Text Based INI Files (used by WINOS2) Written: Steven Elliott - CompuServe 100032,1454 Useful for manipulating and fixing text ini files used by DOS and windows programs FREEWARE Functions Supported IniLoadFuncs Load this library IniDropFuncs Unload this library IniLoad(section, file) will load the entire section into a stem variable of the section name, with the shoots being the field = value pairs IniEnum(stem, where) returns array of fields. stem.0 = num entries str = IniGet(field, where) returns string value of field bool = IniBool(field, where) returns '0' for False and '1' for True supports field being 0/1 or True/False or Yes/No IniDel(field, where) deletes the specified field from the section IniSet(field, value, where) sets filed to the value value IniEnumSections(stem, file) returns array of section names in stem. stem.0 = number of entries handle = IniOpen(section, file) returns a handle to use for other functions (in place of 'where') handle <= 0 is error IniClose(handle) close the specified inifile section IniSave(handle) save any changes made to the inifile section IniCopy(handle, section, file) copy all fields in the 'handle' section to the specified 'section' in the specified 'file' where is either 'handle' or 'section, file' When multiple entries are changed in the same section it is preferable and faster to use the handle version eg: WIN.INI [Desktop] Pattern=(None) Wallpaper=(None) GridGranularity=0 IconSpacing=100 call rxfuncadd 'IniLoadFuncs', 'REXXINI', 'IniLoadFuncs' call IniLoadFuncs wfile = 'C:\OS2\MDOS\WINOS2\WIN.INI' say "The current Windows Wallpaper is" IniGet('Wallpaper', 'Desktop', wFile) say "The [Desktop] section contains the following fields" handle = IniOpen('Desktop', wFile) call IniEnum 'Desktop', handle do i = 1 to Desktop.0 say Desktop.i '=' IniGet(Desktop.i, handle) end say "Changing Granularity and Spacing" call IniSet 'GridGranularity', 10, handle call IniSet 'IconSpacing', 50, handle call IniSave handle call IniClose handle say "" say "The [Desktop] section now contains the following:" call IniLoad 'Desktop', wFile say "Pattern = " Desktop.Pattern say "Wallpaper = " Desktop.Wallpaper say "GridGranularity =" Desktop.GridGranularity say "IconSpacing =" Desktop.IconSpacing call IniDropFuncs say "That's all folks!" /*REXX*/ call rxfuncadd 'IniLoadFuncs', 'REXXINI', 'IniLoadFuncs' call IniLoadFuncs wfile = 'C:\OS2\MDOS\WINOS2\WIN.INI' say "The current Windows Wallpaper is" IniGet('Wallpaper', 'Desktop', wFile) say "The [Desktop] section contains the following fields" handle = IniOpen('Desktop', wFile) call IniEnum 'Desktop', handle do i = 1 to Desktop.0 say Desktop.i '=' IniGet(Desktop.i, handle) end say "Changing Granularity and Spacing" handle = IniOpen('Desktop', wFile) call IniSet 'GridGranularity', 10, handle call IniSet 'IconSpacing', 50, handle call IniSave handle call IniClose handle say "" say "The [Desktop] section now contains the following:" call IniLoad 'Desktop', wFile say "Pattern = " Desktop.Pattern say "Wallpaper = " Desktop.Wallpaper say "GridGranularity =" Desktop.GridGranularity say "IconSpacing =" Desktop.IconSpacing call IniDropFuncs say "That's all folks!"

Manual installation

Program is distributed as ZIP package: download to temporary directory and unpack to destination folder. See below for download link(s).

Following ones are the download links for manual installation:

REXXINI v. 1.0.0 (14/3/1996) Readme/What's new
R E X X I N I Rexx API's for manipulation of Text Based INI Files (used by WINOS2) Written: Steven Elliott - CompuServe 100032,1454 Useful for manipulating and fixing text ini files used by DOS and windows programs FREEWARE Functions Supported IniLoadFuncs Load this library IniDropFuncs Unload this library IniLoad(section, file) will load the entire section into a stem variable of the section name, with the shoots being the field = value pairs IniEnum(stem, where) returns array of fields. stem.0 = num entries str = IniGet(field, where) returns string value of field bool = IniBool(field, where) returns '0' for False and '1' for True supports field being 0/1 or True/False or Yes/No IniDel(field, where) deletes the specified field from the section IniSet(field, value, where) sets filed to the value value IniEnumSections(stem, file) returns array of section names in stem. stem.0 = number of entries handle = IniOpen(section, file) returns a handle to use for other functions (in place of 'where') handle <= 0 is error IniClose(handle) close the specified inifile section IniSave(handle) save any changes made to the inifile section IniCopy(handle, section, file) copy all fields in the 'handle' section to the specified 'section' in the specified 'file' where is either 'handle' or 'section, file' When multiple entries are changed in the same section it is preferable and faster to use the handle version eg: WIN.INI [Desktop] Pattern=(None) Wallpaper=(None) GridGranularity=0 IconSpacing=100 call rxfuncadd 'IniLoadFuncs', 'REXXINI', 'IniLoadFuncs' call IniLoadFuncs wfile = 'C:\OS2\MDOS\WINOS2\WIN.INI' say "The current Windows Wallpaper is" IniGet('Wallpaper', 'Desktop', wFile) say "The [Desktop] section contains the following fields" handle = IniOpen('Desktop', wFile) call IniEnum 'Desktop', handle do i = 1 to Desktop.0 say Desktop.i '=' IniGet(Desktop.i, handle) end say "Changing Granularity and Spacing" call IniSet 'GridGranularity', 10, handle call IniSet 'IconSpacing', 50, handle call IniSave handle call IniClose handle say "" say "The [Desktop] section now contains the following:" call IniLoad 'Desktop', wFile say "Pattern = " Desktop.Pattern say "Wallpaper = " Desktop.Wallpaper say "GridGranularity =" Desktop.GridGranularity say "IconSpacing =" Desktop.IconSpacing call IniDropFuncs say "That's all folks!"
 hobbes.nmsu.edu/download/pub/os2/dev/rexx/rxini.zip
Record updated last time on: 12/09/2018 - 07:12

Translate to...

Add new comment