Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

7zip command line help


Recommended Posts

All,

I will start of with an overview of what I'm trying to do:

I need to compress some files in a Spanning Zip archive of no more than 90MB each file... I need to make the spanned files compatible with WinZip, however, that is giving me problems. if I create a solid archive with 7zip command line it works with winzip no problem, however, if I use the spanning feature in the 7zip command line it makes files like "file.zip.001" "file.zip.002" and so on and they will not open/extract with winzip. I would normally just use WinZip command line, however, my company is skimpy and will not spring for the extra cost of the version with command line options...

Is it possible to do what I'm asking with 7zip? or is there another free application that I should use to accomplish this?

Here is the code that I have currently for 7zip:

"C:\Program Files\7-Zip\7z.exe" a -tzip -v90m C:\temp\test.zip C:\temp\files\*

Any Ideas?

Link to comment
Share on other sites


Based on the above, I'd try something like this!

"C:\Program Files\7-Zip\7z.exe" a -tzip -mm=Deflate -mx9 -md=32k -mfb=128 -mpass=10 -v94371840 C:\temp\test.zip C:\temp\files

Link to comment
Share on other sites

...same as before.

I try to open the resulting files with WinZip and get the error:

"Cannot open file: it does not appear to be a valid archive"

(Opening with 7zip works fine though...)

anything else I can try?

Link to comment
Share on other sites

anything else I can try?

If I am not mistaken "original" ZIP (and winzip) name files as:

file.z01

file.z02

etc.

etc.

file.zip (LAST file)

http://www.pkware.com/documents/casestudies/APPNOTE.TXT

Split ZIP files are typically written to the same location

and are subject to name collisions if the spanned name

format is used since each segment will reside on the same

drive. To avoid name collisions, split archives are named

as follows.

Segment 1 = filename.z01

Segment n-1 = filename.z(n-1)

Segment n = filename.zip

The .ZIP extension is used on the last segment to support

quickly reading the central directory. The segment number

n should be a decimal value.

You should check 7zip if it has an option to follow this naming/splitting convention.....

jaclaz

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...