depends
[quote]does any1 know if 7zip can be setup to execute from the cmdline? (with 98 not 2k :()
[/quote]
yea 7zip can be used from the cmdline… well the syntax is a pain in the arse (check “7-zip.chm” for details).
add it’s directory to your path variable (autoexec.bat)
//before
SET PATH=C:\j2sdk1~1.1_0\BIN;C:\BORLAND\BCC55\BIN;%PATH%
//after
SET PATH=C:\j2sdk1~1.1_0\BIN;C:\BORLAND\BCC55\BIN;C:\PROGS\7ZIP;%PATH%
after reboot or starting the bat manually u can run the 7z.exe (cmd line version) from every directory.
well… u don’t have to add it to your path variable if u just want to call it from bat files.
"C:\Progs\7zip\7z.exe" a -tzip test.zip -mx a.class readme.txt
a=add
-tzip=use zip compression
test.zip=put it into “test.zip”
-mx=max compression
a.class=a file i would like to add
readme.txt=another file i would like to add
in theory u can even compress a bit better than the default “max compression” default does. if u set fastbits to 255 (fb=255) and passes to 4 (pass=4).
[the default “max” uses fb=64 and pass=3]
well… in reality it seems to make no difference. i tried it with a lot of different files and it was always as big/small as the default max compression preset. but i think there are some files where it would make a difference