The Cabinet File Archiving Utility (cabarc) handles the archiving of multiple files in a compressed format.
Use the following command to run cabarc:
cabarc [options] <command cabfile> [@filename.txt] [files] [dest_dir]
options | One or more cabarc options. |
command | One of the following cabarc commands: L N X |
cabfile | The name of the archive file. |
@filename.txt | Takes the list of files to be added to the cabinet file from the specified text file. |
files | A list of files to be archived. Wildcards (such as *.java) are accepted. All files are placed in a single folder, unless a plus sign (+) is placed in the list to delimit the folders. For example, the following command would create two folders.
cabarc n mycab.cab test.* + *.java |
dest_dir | Location of resulting cabinet file. |
When creating a cabinet file, the plus sign (+) can be used as a file name to force a folder boundary. For example:
cabarc n test.cab *.c test.h + *.bmp
When extracting a file to disk, the dest_dir, if provided, must end in a backslash (\). For example:
cabarc x test.cab bar*.cpp *.h d:\test\
Creating and Using Cabinet Files