home *** CD-ROM | disk | FTP | other *** search
- /**/
- /* run with 1 argument = ini file to look at */
- /* for example: showini c:\mptn\etc\tcpos2.ini - Internet 'Other' dialer info. */
- /* for example: showini d:\spllmstr\spllmstr.ini */
-
- parse arg inifile
- if ( inifile = '' ) then
- Do
- say 'Run with 1 argument (name of an *.ini file) to show'
- exit
- End
-
- call sysini inifile, 'ALL:', 'apps.'
- say "apps.0 ="apps.0
- if ( result \= 'ERROR:' ) then
- Do i = 1 to apps.0
- call sysini inifile, apps.i, 'ALL:', 'keys'
- say "keys.0 ="keys.0
- do c = 1 to keys.0
- say apps.i"["i"]"keys.c"["c"] =" sysini( inifile, apps.i, keys.c )"="
- end /* do */
-
- /** Uncommenting out the lines below will let you delete ini file items!
- VERY DANGEROUS unless you know what you are doing
- **/
- /** say 'Delete whole app.' apps.i '?'**/
- say 'hit return'
- parse pull ans
- /**
- if ( ans ='Y' ) then
- Do
- say 'Deleting whole app.'
- call sysini inifile, apps.i, 'DELETE:'
- End
- **/
- end
-
- RETURN
-