|
| Parameter |
Commend |
| L |
Used to list the contents of
a cabinet. |
| N |
Used to create a cabinet
file. |
| X |
Used to extract single or
multiple files from the cabinet. |
| Options |
| -c |
Confirms the files to be
operated upon |
| -o |
Overwrites without
confirming when extracting |
| -m |
Sets the type of compression
to use to LZX:<15..21>, MSZIP, or NONE. The default is MSZIP |
| -p |
Used to preserve path
names |
| -P |
Used to strip a specified
prefix from files when they are added |
| -r |
Used to recurse into
subdirectories when adding files |
| -s |
Used to reserve space in the
cabinet for signing. For example, -s 6144 reserves 6k. |
| -I |
Used to set the ID of the
cabinet when creating a cabinet. The default is 0. |
Cabarc Commands
- As you can see, there are several commands
that CABARC supports. You can list the files in cabinets, add files
to cabinets, and remove file from cabinets.
- For the most part, you will be primarily
interested in creating CAB files. Thus, it is the "N" command that
you will use most often. For example, the following CABARC command
would create a CAB file called "MyApplet.cab" that would contain
all of the class files in the current directory.
cabarc N MyApplet.cab *class
- CABARC also allows you to list the files in
a current cabinet. In this case, you will use the "l" command as
follows:
cabarc L MyApplet.cab *class
- The "L" command returns information about
the size of each file in the cabinet, the dates and times each was
added, as well as the attributes of each file
- Finally, CABARC allows you to selectively
remove files from within a cabinet file using the "X" command. For
example, to remove the SupportClass.class file from the example
above, we would use the following syntax:
cabarc X MyApplet.cab SupportClass.class
- Notice that when extracting files, the
default behavior is for CABARC to ask you if you would like to
overwrite existing files if they have the same name as those being
extracted.
CABARC Options
Referencing your Cabinet
Previous Page |
Next Page
|