
ZIP-Split 2 & ZIP-Rebuild

(c) Remi Villatel, July 1997

Contact :    NeST      90:800/1.6     AtariNet  51:901/1.6
             FidoNet   2:320/107.0    [No e-mail by now.]


-------------------------------------------------------------------------

     The aim of ZIP-Split and ZIP-Rebuild is to recover ZIP files for
which ones ST-ZIP says that they are "damaged or not a ZIP file at all".

     ZIP-Rebuild will explode the ZIP file in as many files as the
original ZIP file contains. ZIP-Split will uncompress the archive.
     Don't expect miracles from ZIP-Split/Rebuild. They cannot rebuild
the data. They will only process the parts of the archive that are
uncorrupted.

     ZIP-Split/Rebuild accept as well corrupted ZIP files as non-corrupted
ones (self-extracting [.TOS] or not [.ZIP]). In fact, they do not know if
a file is damaged or not... They guesses! Errr... They discover it. And they
accept also any kind of files, but these last ones may lead to bombs. The
name of my tiny program is ZIP-Split, not Sledge-Hammer! :-)
     As well ZIP-Split as ZIP-Rebuild can process files bigger than the 
available memory; they work in direct-to-disc.

     Now we can run ZIP-Split.
     The fileselector appears twice. Once to locate STZIP (v2.06 only and 
the ZIPJR.TTP is better if you haven't lot of RAM, but the PRG works 
as well) [Select the file, not only the path], second to select the ZIP 
file. If you click on CANCEL or don't really select a file, you'll simply 
leave ZIP-Split.
     ZIP-Split is now working. It displays the names of the files it finds, 
the normal size, the compressed size, the compression rate and the 
compression method. Then it runs ST-ZIP which uncompresses... And so on, 
and so on...
     You can interrupt ZIP-Split with the ESC key. (Hold the key until the 
program reacts!)
     At the end of its work, ZIP-Split tells you how many files it      
recovered and waits for a key or a mouse click. Then the fileselector
comes back for you to choose another ZIP file.
     Close to the ZIP (or TOS) file, you will find another file with the 
same name but the extension IDX. (Recovered files are uncompressed [with
their nested folders] in the same directory as both the ZIP and IDX files.)
This InDeX file is a simple ASCII file containing the list of the recovered
files and their relative path to the directory of the ZIP file. If you
discover the word "corrupted" in between square backets, it means that
ZIP-Split found something meaning that a file should be here but that 
something was wrong and couldn't be recovered.

     ZIP-Rebuild works the same way as ZIP-Split but it needs not ST-ZIP.
When the fileselector appears, select your ZIP file.
     ZIP-Rebuild will show you which files it finds and, at the end, the
number of rebuilt files. Press any key or the mouse button. This is it!
     In the same folder as the original ZIP file, you will find a file
with the same name but the extension IDX and (maybe) a lot of files named
"0000.ZIP", "0001.ZIP", "0002.ZIP", and so on. The InDeX file lists the
numbers of the rebuilt files and their content. Now, it is your job to
decide what to do with all these ZIP files.
     
     Enjoy ZIP-Split/Rebuild! If you want to improve them, the GFA sources
are included. (A GEM interface would be very nice!) ;-)

     Now, I shut my face before the doc becomes bigger than the program. 
Use ZIP-Split/Rebuild, spread it, modify it, translate it, erase it, reformate
your harddisk (to be sure that it is erased) :-) but don't forget that the 
original idea is mine.

R.V.


-------------------------------------------------------------------------
[EOF]