Microsoft SDK for Java

Cabarc

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]

Cabarc Command-Line Arguments

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.

Cabarc Command-Line Options

/c /i /m /o /P /p /r /s /?

Usage Notes

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\

See Also

Cabarc Options

Cabarc Commands

Creating and Using Cabinet Files

© 1999 Microsoft Corporation. All rights reserved. Terms of use.