Hello All!
With archivers such as LHA and InfoZip's ZIP, I use the "Pipe" command for
example to archive files in alphabetic (or any other) order; so far I have
been unable to figure out how to use "Pipe" with JAR (or ARJ):
DIR *.* /o:n /b | LHA a filename.lzh (very fast!)
or: DIR *.* /o:n /b | ZIP filename.zip -@ (very slow!)
While sorting has little or no effect for standard archivers such as LHA, ZIP
and ARJ, it does have a major effect for "solid" archivers, e.g. JAR. JAR,
during the "Analyze" process, does already _some_ sorting of it's own to
group files automatically. But I can help this process and pre-sort files by
extension and achieve much better compression with "solid" archivers such as
JAR. Unfortunately, with JAR (also with ARJ), instead of using "Pipe", I
have to create a "listfile":
DIR *.* /o:e /b >listfile.txt
This will create a "bare" (/b) listing of all files in the current directory
sorted by extension. For JAR, I would then execute:
JAR a filename.jar !listfile.txt
Example: archiving all files in my C:\WINDOWS folder (401 files, 13,374,614
bytes) without pre-sorting results in a JAR archive (normal compr.) of
6,081,173 bytes. The same thing, but pre-sorted by extension using the above
listfile.txt example, results in 5,455,226 bytes, a saving of 10.3% :-)
How can I use the "Pipe" command with ARJ and especially with JAR and avoid
the extra step of creating a "listfile"?
Robert, if you're reading this, can you enlighten me, please?
Cheers, Hans
... Mail not found: (a)bort (r)etry (p)anic (b)lame SysOp
--- GoldED/386 2.50+ / Squish / Maximus / Binkley / WINDOWS 95 / V34+
---------------
* Origin: Digital Encounters * Kamloops BC Canada 604/374-6168 (1:353/710)
|