home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
listin.zip
/
LISTINI.DOC
< prev
Wrap
Text File
|
1994-12-25
|
6KB
|
137 lines
LISTINI.CMD - Create A Text File From An INI File
(c) Copyright 1994-95 by C F S Nevada, Inc.
Purpose
-------
This program will read an OS/2 2.1 or WARP Version 3.0 binary INI
file and create a text file for all of the "application" keys and
all of the subordinate keys. Application names and the
subordinate key are listed in alphabetic order.
This program is copyrighted 1994-95 by C F S Nevada, Inc. and is
distributed free of charge to the public domain "as is" with no
warranty by either its author, Dick Goran, or by
C F S Nevada, Inc.
Running LISTINI
---------------
LISTINI is an OS/2 command line program and it has 3 optional
command line parameters. The defaults are:
LISTINI S, LISTINI.SHT, BOTH
Each parameter except the last must be followed by a comma.
The first parameter indicates whether output should be in short
(the default) or long format. Short format forces each key entry
to be truncated if the value of the key exceeds the capacity of
one "print line". Long format results in all of the key value
being shown in both character and hex format. An example is
included at the end of this document. The selection of long vs.
short format results in the default file extension of the output
file being LNG or SHT respectively, if no output file (2nd
parameter) is specified.
The second parameter is the name of the output file to receive
the data. It may be either a file (including any valid disk file
system name) or a printer. If a printer is selected, the output
is formatted by page with headers and page numbering.
The third parameter is the name of the Ini file to be listed. Any
value accepted by the REXXUTIL SysIni() function may be
specified. The default is BOTH implying both the OS2SYS.INI and
OS2.INI files will be listed.
When BOTH is selected as the Ini file, each output line
containing the "application" name will be preceded with either
the capital letter S or U indicating that the application data
came from the system Ini file (OS2SYS.INI) or the user Ini file
(OS2.INI). It will be preceded by B if the same application
occurs in both the system and user Ini files.
The progress of the program is indicated by each application name
being displayed as that entry is processed along with an "in-
process" indicator.
Requirements
------------
Listini.CMD is an OS/2 REXX program and has been tested under
OS/2 2.1 and Warp Version 3.0. It requires a commercial,
proprietary REXX object module from Quercus Systems - REXXLIB.
REXXLIB.DLL is distributed free of charge with this program with
the expressed consent of Quercus Systems. It is to be used with
C F S Nevada, Inc.'s programs only unless the user purchases and
licenses a copy of REXXLIB from Quercus Systems.
REXXLIB.DLL may reside in the same directory as this program or
may me moved to any convenient library that is included in the
user's LIBPATH. Licensed REXXLIB or Personal REXX users may
delete the REXXLIB.DLL file distributed with this program.
Special Considerations
----------------------
Since the key values for all of the entries in PM_Abstract:Icons
are basically the icon data, over 50K of hex data is not
displayed for these keys. The key length is shown as the correct
value; however, only 72 bytes ('48'x) of the actual icon data is
listed. The word "partial" is appended to the last print line
shown as a reminder that the full icon data has not been printed.
The environment variable SET COLORS=NO may be specified to
inhibit all PM_..._Colors application names in the OS2.INI file.
This shortens the output file if the various color combinations
are of no interest.
Parameter Examples (uppercase is for illustration only)
-------------------------------------------------------
To list the contents of the FORBROWSE Ini file on LPT1 in short
format, the command line could be:
LISTINI S, FORBROWS.TXT, C:\PASSPORT\FORBROWS\FORBROWS.INI
To list the full contents of OS2SYS.INI on LPT1, the command line
could be:
LISTINI L, LPT1, SYSTEM
(Be sure to have a lot of paper in the printer).
Sample Short & Long Format Output
---------------------------------
01/24/94 13:39:44 LISTINI.CMD 2.0 - List of BOTH Page 1
Application Name Key Name Length Contents
------------------- ------------------- ----------- ---------------------
(example of short format)
S APPLICATION TIMEOUT Len='0004'x 45;.
U ClockProgram 2.2 in WP3
Preferences 3 Len='010A'x '01000400 FFFFE900 'x
U Lock Up Workplace Lockup_options3 Len='0128'x '01000100 14003F00 'x
U MEMSIZE INIPATH Len='000C'x F:\os2addon.
(example of long format)
U ClockProgram 2.2 in WP3
Preferences 3 Len=X'010A'
+0000 | 01000400 FFFFE900 70FF0000 0000FF00 | ........p.......
+0010 | 0000FF00 00000000 00000000 23000C00 | ............#...
+0020 | 00000000 01000100 5C000000 0F100000 | ........\.......
+0030 | 3C000000 68000000 03000000 E4000000 | <...h...........
+0040 | 40177003 9423B004 00000000 00000000 | @.p..#..........
+0050 | 59044E04 01000000 E4000300 68003C00 | Y.N.........h.<.
+0060 | 01000000 FFFF0000 00000000 00000000 | ................
+0070 | 00000000 00000000 00000000 00000000 | ................
+0080 | same |
+0100 | 00000000 00000000 0000 | ..........