List Cabinet Contents Extracting Cabinets The cabinet format provides a way to efficiently package multiple files.
By compressing files in this way, the compression ratio is improved.
The downside is that random access time suffers, since in order for any particular file in a folder to be decoded, all preceding files in the same folder must also be decoded.
Back to top Cabarc is a utility that creates, extracts, and lists the contents of cabinet files (CABs), using a command line interface similar to that of popular archiving tools.
Cabarc supports wildcards and recursive directory searches.
Back to: Cabarc User's Guide Currently, only three commands are supported; N (create new cabinet), L (list contents of an existing cabinet), and X (extract files from a cabinet).
These commands are described in the following pages.
Options must appear before the command name, and cannot be combined (for example, to set the –r and –p options, use –r –p, and not –rp).
Back to: Cabarc User's Guide containing the files "prog.c", "prog.h", "prog.exe", and "readme.txt", in a single folder, using the default compression mode, MSZIP.
Back to: Cabarc User's Guide Cabarc supports wildcards in the filename list, as shown in the example below: Creating Cabinets By default, all files are added to a single folder (compression history) in the cabinet.
It is possible to tell cabarc to begin a new folder, by inserting the plus (+) symbol as a file to be added, as shown below: The above command creates the cabinet "mycab.cab" with one folder containing "test.c" and "main.c", and a second folder containing "test.exe" and all files matching "*.obj".
Back to: Cabarc User's Guide Creating Cabinets By default, directory names are not preserved in the cabinet; only the filename component is stored.