home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
CLNINI.ZIP
/
READ.ME
< prev
Wrap
Text File
|
1992-11-10
|
4KB
|
98 lines
CLEANINI.CMD - Version 1.1 - November 10, 1992
Copyright (C) 1992 by James D. Stuyck
A compression program for OS/2 2.0 ".INI" files
Tested and "seems to work just fine" with the ServicePak (XR06055)
installed. However, though the risk seems to be negligible, the
author specifically disclaims any responsibility for bad effects
arising from the use of this program.
PLEASE! -- Test this in your own environment before doing things
like arbitrarily discarding working OS2.INI and OS2SYS.INI files.
The OS/2 2.0 "OS2.INI" and "OS2SYS.INI" files grow and grow as time passes.
There is no utility provided with OS/2 2.0 to compress these files nor are
they automatically compressed like the "SWAPPER.DAT" file is (with the
advent of the ServicePak).
Other programs -- the Enhanced Editor, Solitaire-Klondike, PM Diary and
OS/2 Chess -- use the same INI-structure and have the same problems (though
not nearly as large).
This program, written and distributed in source form, uses a standard REXX
function to extract values saved in an INI file and create a new file. The
effect is to "compress" that file (and create a backup copy).
The OS2.INI and OS2SYS.INI files cannot be replaced unless you boot from
OS/2 installation diskettes, another OS/2 partition (using the Boot Manager)
or from DOS (if your fixed disk partition is formatted FAT). The other INI
files (EPM.INI, KLONDIKE.INI, PMDIARY.INI, etc.) usually are not "protected"
(are not in use when you wish to replace them) and can be replaced using
the COPY command.
Usage: cleanini [OldFileName [NewFileName]]
By default, with no optional parameters specified, the two critical OS/2 2.0
".INI" files are located (they are in the "\OS2" directory of your boot disk),
cleaned (compressed), copied to the "current directory" and renamed:
OS2.INI becomes OS2.NEW and OS2SYS.INI becomes OS2SYS.NEW.
Often, you will find that the cleaned (NEW) files are somewhat smaller than the
old files. You could then boot from the OS/2 installation diskettes and copy
the NEW files to the \OS2 directory, renaming them with the INI extension.
The old (input) file is NEVER modified.
Other applications that use OS/2-style INI files can have their INI files
cleaned. If an OldFileName is specified, it must be fully qualified. Examples:
C:\OS2\EPM.INI or C:\OS2\APPS\KLONDIKE.INI or D:\OS2\APPS\OS2CHESS.INI
NewFileName is optional. If it is not specified, then a new file is placed in
the same directory with the same file name as the old file, with the file
extension ".NEW." Example:
D:\OS2\APPS\OS2CHESS.INI is cleaned into D:\OS2\APPS\OS2CHESS.NEW
It takes time, unfortunately, to copy BIG INIs. To make time pass more
quickly, and give you some idea what's in the INI, the program tells you
what is being copied.
To install CLEANINI.CMD, simply copy it to a directory in your "PATH."
There are certain risks one takes when he distributes software in source
form (in this case, a REXX command file). The author certainly loses much
of the protection a "binary" or compiled program offers because the
"intellectual part" of the software is open for inspection. I charge a
modest fee for this modest program, hoping that those who find it useful
will not object to that fee.
The user assumes certain risks when he receives software in source form, too.
Who knows who has messed with the code, maybe really fouling it up. Hey,
it could even be YOU, the user!
I hope you find this utility helpful, but I specifically disclaim any
responsiblity for any damages the use of this utility may cause.
If CLEANINI is helpful to you or your organization, you should pay for it.
The license for individuals is $10 (US). Companies can pay a multiple of
$10.00, based on number of users, or may write for a quotation.
Please send license fees to:
J. D. Stuyck and Associates
6 Lincolnshire Circle
Bedford, TX 76021-4618
Thank you for your support.
Jim Stuyck