Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Do any of you know CabPack? A tool from 99 that allows to add folders to a CAB archive.

Are there any alternatives to this software? Cabpack doesn't have command line options.

I tried PowerArchiver and ZipGenius and both failed to add folders to it, so are there any tools that can actually do it?

share|improve this question
    
What's wrong with CabPack? –  Daniel Beck Jan 5 '12 at 13:27
    
It doesn't have command line options else I would use it –  mashup Jan 5 '12 at 13:34
1  
That'd be a relevant requirement you should state in the question. –  Daniel Beck Jan 5 '12 at 13:46

1 Answer 1

up vote 1 down vote accepted

All CabPack is is a relatively simple interface to makecab.exe. If you want a command line CAB archiver, you could try Microsoft's own cabarc.exe. I think it was included with the XP and 2003 Resource Kit Tools.

That said, PowerArchiver shouldn't have any problems adding folders to a CAB archive. Are you looking to have all the contents of the resulting CAB archive be inside a single subfolder?

However, CAB files are very sensitive to file order when it comes to compression level. If you can group files by type you can improve the compression by quite a bit in some cases. For that you'd need a tool to custom generate DDF files for you.

All this said: Why CAB? The only thing I can think of is that decompression is built into Windows XP and up, and the compression level can be significantly better than ZIP. However, 7-Zip can easily beat it on many filesets and the overhead of the SFX stub is minimal if you want to include it.

share|improve this answer
    
I managed to add a folder to a CAB file using PowerArchiver, but it preserves the directory path. - I need 1 folder and multiple files in a CAB folder on the root level - no nested folders :/ –  mashup Jan 5 '12 at 14:16
    
Go into the options, Miscellaneous group, and toggle the "Use normal relative path" option. Make sure that "Save full folder info" isn't checked when you create your archive. This should get you what you want. –  afrazier Jan 5 '12 at 14:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.