home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
zip
/
exzip192.arc
/
EXZIP.DOC
< prev
next >
Wrap
Text File
|
1989-04-16
|
24KB
|
622 lines
<= ExZip =>
Part of the EXpert series programs available at
The Executive Network Multi-Node BBS
Registration number: (914) 667-4567
Public access : (914) 667-4684
Subscriber access : (914) 667-4759
--------------------------------------------------------------
Copyright 1988, 1989 - Andy Keeves
OK, just what the devil is ExZip you ask. ExZip is a
rather simple program to help with the re-compressing of files.
It was born primarily to answer the need of a BBS SysOp who
receives a fair number of files, some of which may be damaged or
ARCed with an older and less efficient ARChive program, or ZIPed
with compression methods other than the ones I wish to use.
ExZip has the ability to pick out any files from a given
subdirectory that are dated with today's or yesterday's date and
reZIP them all in one pass using PKZIP. Simple, no? This makes
it an ideal program for unattended, overnight processing. All
you need is a simple configuration file to tell it where your
files are. There are a few other variables you can use, this
way nearly anyone can use it effectively, not only Sysops.
ExZip is a successor to ExArc and it introduces a number of
new, enhanced features, including the automatic conversion from
.ARC to .ZIP formats.
ExZip is a FREE program. That is you may freely use it,
give it away, upload it to other bulletin boards. You may NOT
change it, or ask money for it or claim it is yours. If you
like ExZip and is of help to you, upload a few files to your
favorite bulletin board. If you absolutely must pay for it,
send a few $$ to your favorite BBS Sysop - believe me, all
Sysops can use it, since running a board is NOT cheap! Should
you find a bug in ExZip, you may drop me a line via my BBS or
via the InterLink network (several topics).
ExZip v1.9 [04/08/89] - File Re-compressor program Page 1.
How to set-up and use ExZip
---------------------------
The configuration file MUST be called EXZIP.CFG and it MUST
be located in your default directory when ExZip is ran. If you
have used ExArc in the past, notice that the configuration file
MUST now BE CALLED EXZIP.CFG!! MAKE SURE YOU READ ON, SINCE
THERE ARE NEW OPTIONS HERE! It is a standard ASCII text file,
so you may use most any editor to create it, including EDLIN or
"COPY CON". The only required entry in this file is a path
where the files to re-ZIP are to be found. The path
specification, as well as the few other optional specs are
entered in the format X=<options>, where X is the letter
indicating the type of specification that follows. The path
specification is indicated by the letter P. By the way, the
configuration file is NOT case sensitive, so do not worry about
it. Here's what it might look like:
P=C:\NEWFILES
OK, that wasn't so bad, was it? With that line, ExZip would re-
ZIP all files on C:\NEWFILES that have a .ZIP extension and have
yesterday's or today's date! Oh, nearly forgot to mention that
ExZip can handle more then one directory if you so desire. This
is accomplished by entering more then one P=<path spec> lines,
like this:
P=C:\NEWFILES
P=C:\MYDIR
P=C:\BASIC\PROGS
More on path specifications.
----------------------------
FORMAT: P=<drive\path>=<drive\path\DIRnn>
The path specifications lines must always begin with the
letter P. Two options may be specified on this line, all parts
separated by = (equal sign). Part 1, as shown above is the path
to the files, including drive letter. Should NOT contain a
trailing backslash, though ExZip will correct it for you. The
second option is a pointer to the corresponding PCBoard DIRnn
file, including drive letter and path. This should NOT be the
ANSI version under any circumstances!!! If this is specified,
ExZip will perform the following functions for you as well:
- Set the ZIP file date to that found in the DIRnn file;
- Adjust the DIRnn file entry for ZIP extension if
needed;
- Adjust the file size in the DIRnn to the new ZIP;
ExZip v1.9 [04/08/89] - File Re-compressor program Page 2.
I know that no program can please everyone, but I needed to
put a ceiling on this somewhere, so the most path specifications
you can enter into a .CFG file is limited to 50. Actually you
could enter as many as you want, but ExZip will ignore anything
past 50.
ARC options.
------------
FORMAT : A=<Option>
DEFAULT: NO
Default here is to scan only for ZIP files. If option is
"Y" for yes, ExZip will also scan for .ARC files in the
specified path and convert them .ZIP in the same pass.
You may also set this parameter to "O" (Only ARCs) which
will bypass the processing of any ZIP files. This can be handy
if processing a directory which has already been partially
completed.
>> Note that both, ZIP to ZIP and ARC to ZIP format
conversions check for imbedded compressed files! If
converting from ARC ExZip will look for additional .ARC
files contained in the archive and they will also be
converted to ZIP. Similarly, ZIPs will be looked for in
ZIP files and recompressed.
Activity logs.
--------------
FORMAT : L=<drive\path\filename>
DEFAULT: EXZIP.LOG
ExZip activity will be recorded, along with any errors
encountered, in the log file. This is a cumulative record and
the file should be occasionally deleted to save space.
Program names.
--------------
FORMAT : Z=<program name>
DEFAULT: PKZIP
Defines the PKZIP program name, if other than original.
ExZip v1.9 [04/08/89] - File Re-compressor program Page 3.
FORMAT : U=<program name>
DEFAULT: PKUNZIP
Defines the PKUNZIP program name, if other than original.
FORMAT : X=<program name>
DEFAULT: PKXARC
Defines the PKXARC program name, if other than original.
Read Only files.
----------------
FORMAT : R=<command_string>
DEFAULT: none.
Seems that some folks are determined to create problems by
including files set to read-only attributes in ZIPs. To remove
this problem ExZip will allow you to pass a string of your
choice to processing which will be used to set all files
extracted to read/write attributes. Sonce there are many
utilities around to do this, you can take your choice here. The
only thing that you must do is place a # (pound sign) in your
string where the path would go. Thus, if you were using the DOS
ATTRIB command your command string would look like this:
ATTRIB -R #\*.*
where ExZip will insert the proper drive/path for you whereever
you type the pound sign. Remember to add "*.*" as well, unless
your program (i.e. STRIPZIP) does not require it. In the above
example, your line would look like this:
R=ATTRIB -R #\*.*
ExZip will specifically look for STRIPZIP in your string. If
you are using it, simply create the line as follows:
R=STRIPZIP /R #
Note that STRIPZIP is not supplied with ExZip, but you can find
it on many systems, including mine.
Command options.
----------------
FORMAT : O=<options>
ExZip v1.9 [04/08/89] - File Re-compressor program Page 4.
DEFAULT: -A -EX4 -O
Allows you to specify your own PKZIP options overwriting
all defaults shown above.
ANSI options.
-------------
FORMAT : C=<OFF>
DEFAULT: ON
Turns off ANSI codes if ANSI.SYS is not loaded.
ZIP file comments.
------------------
FORMAT : I=<drive\path\filename>
DEFAULT: NONE
If specified, the contents of the indicated file will be
placed in the new ZIP file as a comment.
Unwanted files!
---------------
ExZip allows you to specify a list of unwanted files.
These would be files like COMMAND.COM, AUTOEXEC.BAT, CONFIG.SYS
and whatever other names you wish to exclude from compression
whenever found in a file being ZIPed. To use this feature,
simply create a file called EXZIP.EXC on the same drive\path as
your EXZIP.CFG file. This file can be created and maintained
with any text editor. Enter each unwanted filename on a
separate line, without a drive\path designation. Up to 100
names may be specified.
Directory Handling
------------------
ExZip observes network file sharing on multi-node systems.
As a result, when using the DIRnn update feature, it creates a
temoprary work file, which is copied to the actual DIRnn file
when all completed. Should another user be on-line reading the
directory, ExZip will go into a wait loop, retrying the update
every 10 seconds or so until it succeeds. If running unattended
during your event, you should assure that no other program is
ExZip v1.9 [04/08/89] - File Re-compressor program Page 5.
locking the directories permanently. ExZip will wait for ever
if need be. Should a problem occur, the copy may be skipped by
pressing ESC.
ExZip does NOT update your ANSI directories! After ExZip
is finished you can accomplish that by simply running PCBFiler
during your event via the command line:
PCBFILER /COLORIZE;SORT
which will sort and colorize all your directories.
Command line switches
---------------------
There are only two command line options available in ExZip.
Either or both are specified with a leading / (slash).
/ALL When specified, this option tells ExZip to ignore
dates and process ALL files in all specified
paths. Ideal for conversions.
/EVENT When specified, it tells ExZip to suppress all
sound effects.
Known Problems!
---------------
At the time of this writing there are known problems in
PKZIP, which I imagine will be fixed in time. Some have been
addressed by ExZip, others simply cannot be, so you should use
caution!
1) PKZIP does not observe the -o parameter as documented.
ExZip gets around this problem IF you also point it to
your corresponding DIRnn file.
2) PKUNZIP seems to fail to display or extract ZIP file
members under some circumstances. This has not been
identified as to the exact reason or way it happens,
but it does happen. Since no error code is returned
by PKZIP, ExZip has no way to find out that nothing
was extracted, and you CAN lose a file this way! This
is a problem that must be resolved on the PK side.
3) A problem has been reported where PKZIP will create
and continue to create a ZIP file. I have no idea
what the circumstances might be as I have never seen
ExZip v1.9 [04/08/89] - File Re-compressor program Page 6.
this one myself, however, it can and will run you out
of disk space if/when it happens!
This really is it. Just remember that PKZIP and PKUNZIP
(and possible PKUNPAK) must be available when doing this, in the
current directory or in a search path. Also, don't run out of
space! A good rule to keep in mind is that you should have free
space equal to the size of your largest ARChive times 2 (at the
least). Although ExZip may look a bit strange running on a
monochrome monitor (was designed for CGA), it will run flawless.
Suggestions and warnings!
-------------------------
WARNING! DO NOT RUN ExZip in a DDOS bottom partition!! It
will hang, since it uses direct screen writes !!!
WARNING! I do not suggest running ExZip with DDOS up or in
small memory machines IF you will be encountering
ARCs within ARCs or ZIPs within ZIPs! ExZip uses
a DOS shell to do the work and yet a second if
ARCs or ZIPs are located in the file.
And ZIPping right along .... keep dialing!
ExZip v1.9 [04/08/89] - File Re-compressor program Page 7.
Changes in ExZip.
-----------------
In all honesty I do not anticipate many changes to this
program, so there is no separate what's new file. I will simply
pickup from today's changes, and future ones, if any.
v 1.4 Oct 17, 1988 New feature added.
- There is a new .CFG parameter you can now use
with ExArc. It facilitates the addition of tag
lines that PKWare allows. You will need to
create file, containing the single line of your
desired tag line. Once you have this, simply
tell ExArc where it is and it will do the rest
for you. The format for this is
"I=<path\filespec>" where "I" stands for input.
- With the proliferation and changes in archiving
utilities, there seems to be a need to allow
multiple programs. Thus, an additional .CFG
parameter is available to allow the use of
programs other than PKARC/PKXARC. The format is
simply "X=<extract-program>" & "A=<arcprogram>".
Thus you might have a line like "X=PKPAK" or
variations like it. You need not specify the
extension, only the name. If either of these two
are found in the .CFG file, ExArc will use the
program names you supply instead of PKARC/PKXARC.
If not found, it will still default to the
original names.
v 1.5 Feb 5, 1989 New feature added.
- I came across a slightly annoying situation,
finding that some folks not only place a comment
in the archive, but also additional files which
do not belong there. Not only is this against
the wishes of most Shareware authors, but these
files will also increase my storage requirements
and my callers' transfer times! Well, now there
is an answer. ExArc can be told to remove
specific files from the archive if found! Most
people are consistent when adding a file. All
you need to do is create a text file called
EXARC.EXC (as in EXClusions) in the same
directory as EXARC.CFG is already in. Use any
text editor, COPY CON, EDLIN, and enter each file
name you wish removed. You may enter up to 100
file names, each on a separate line. DO NOT
ExZip v1.9 [04/08/89] - File Re-compressor program Page 8.
enter drive or directory designations, only the
file names! This is it. Simple and effective!
You will never be annoyed by "extra" files ever
again!
v 1.6 Feb 20, 1989 Changes toward ZIP.
- Program renamed to EXZIP.
- Several new CFG options added
- Handles compressed files inside the file
- Converts from either ARC or ZIP
- Updates PCBoard's DIRnn files now
- Stamps the new ZIP with date from DIRnn
v 1.7 Feb 21, 1989 Minor (internal) change
- ExZip was never designed for a major conversion
effor, such as that of an entire system. Since
it relied on relatively few files being re-
comressed, the DOS .BAT usage was fine. In
handling thousands of files, however, DOS slowed
it to unrealistically slow levels. Version 1.7
now checks the number of files that need to be
processed and breaks the batch into smaller .BAT
files of 50 compressions each. Thus we are able
to retain the full conversion speed throughout.
- Minor changes in colors for readability
- Added file display to last step of directory
scans. The system just seemed to sit there doing
nothing on a large conversion. Now at least you
can tell what it is doin.
v 1.8 Feb 23, 89 Maintenance release
- Corrected (external) problem of faulty ZIP file
for version 1.7 (see notes on PKZIP bugs).
- Reduced label sizes to allow handling of
directories containing more than 999 files.
- Added additional checking for the presense of
PKZIP. Previously, if this was not found, ExZip
could have deleted the original files without a
replacement file.
- Corrected documentation to properly indicate
default program name as PKXARC instead of
PKUNPAK.
v 1.9 Apr 8, 89 Added features
- Added configuration option to allow the passing
of a command string to set all extracted files to
read/write attributes. See details in manual for
"R" configuration option.
ExZip v1.9 [04/08/89] - File Re-compressor program Page 9.
- Added additional error recording.
- Changed default PKZIP option to reflect current
release by using "-EX4".
- Added checking for .ARC files placed in ZIPs even
if not doing ARCs.
v 1.91 Apr 8, 89 Oops!
- We did it again! Seems after all the testing
here, I managed to drop a space before final
compilation which made the R option not function
with STRIPZIP. Apologies to all for the goof!
v 1.92 Apr 15, 89 By George, I think I've got it!
- In addition to a minor change clearing up the use
of ATTRIB (I hope) I think I finally found the
strange Illegal Function call error! Seems that
if the very last file processed sets the DOS
errorlevel flag, QuickBasic simply chokes! I
have seen this before but never managed to
pinpoint it. Since the program fails before it
releases control from the shell, there was but
one course of action, write my own program to
clear the errorlevel at the end. Thus, you will
now find CLEARERR.COM included with ExZip. It
should be placed in a search path or the same
place you will keep ExZip. It is not required
for use, but you can get mysterious errors from
ExZip if you do not have it present. This should
do it for a while I trust!
ExZip v1.9 [04/08/89] - File Re-compressor program Page 10.