Sdílet prostřednictvím


Cabarc Syntax

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

CABArc Syntax

CABArc uses the following general syntax:

Art Imagecabarcparametersoperationarguments

Operations

L

Lists files contained within a CAB file.

Syntax

Art ImagecabarclCabFileName**.cab**

Parameters

  • CabFileName.cab****
    Specifies the name of the CAB file for which the contents are to be listed. The CabFileName may include a path (for example, c:\test\mycab.cab).

N

Creates a CAB file.

Syntax

Art Imagecabarc [/m {lzx:Compression|mszip|none}] [/p] [/P Pathname] [/r] [/s] [/I SetID] n NewCabFileName[*].cab FileNameOrPattern [FileNameOrPattern [...]]

Parameters

  • /m {lzx:Compression|mszip|none}
    Sets compression type. If no compression type is specified, MSZIP format is used.

    Value Description

    LZX:Compression

    Uses LZX compression. Valid Compression values are 15 to 21.

    MSZIP

    Uses MSZip format.

    NONE

    Uses no compression.

  • /p
    Preserves path names. Absolute paths are not allowed.
  • /P Pathname
    Strips the specified Pathname from files when they are added to the CAB file. Note
    • The /P option can be used multiple times to strip out multiple paths.
  • /r
    Recurses into subdirectories when adding files.
  • /s
    Reserves space in the CAB file for signing. For example, /s 6144 reserves 6K bytes.
  • /i SetID
    Sets the CAB set ID when creating CAB files. The default set ID is 0. Note
    • When using the /d parameter, the NewCabFileName should contain a single "*" character where the cabinet number will be inserted.
  • NewCabFileName[*] .cab
    Specifies the name of the new cab file. The file must have a .cab file type. Note
    • When using the /d parameter, the NewCabFileName should contain a single "*" character where the cabinet number will be inserted.
  • FileNameOrPattern
    Specifies the file or pattern of files to include in the CAB file. For example, myfile.ini mfiles.* will include the file myfile.ini and all files with a file name of mfiles regardless of type.

Note

  • When creating a CAB file, the plus sign (+) may be used as a filename to force a folder boundary. For example, cabarc n test.cab *.c test.h + *.bmp.

X

Extracts files from a CAB file.

Syntax

Art Imagecabarc [/c] [/o] x CabFileNameFileNameOrPattern [FileNameOrPattern [...]] [Pathname]

Parameters

  • /c
    Confirms which files will be extracted.
  • /o
    Specifies that existing files with the same name as those being extracted will be overwritten without asking for confirmation.
  • CabFileName .cab
    Specifies the name of the CAB file that contains the files to be extracted. The CabFileName may include a path (for example, c:\test\mycab.cab).
  • FileNameOrPattern
    Specifies the file or pattern of files to extract from the CAB file. For example, myfile.ini mfiles.* will extract the file myfile.ini and all files with a file name of mfiles regardless of type.
  • Pathname
    Specifies that path to which the files should be extracted. The path must end with a back slash example, c:\myfiles\. If no path is specified, the current path is used.

Note

  • When run without parameters, operations, or arguments, CABArc displays command line usage.

See Also

Concepts

Cabarc Overview
Cabarc Remarks
Cabarc Examples
Alphabetical List of Tools
Topchk.cmd
Rsdir Overview
Rsdiag Overview
Iologsum Overview
Health_chk Overview
Ftonline Overview
Filever Overview
Efsinfo Overview
Dmdiag Overview
Dskprobe Overview
Diruse Overview
Dfsutil Overview
Connstat Overview
Bitsadmin Overview