MORE INFORMATION
A cabinet (*.cab) file contains many files stored as a single file. The
following are examples that show how to use the Extract command to copy and
extract files from a cabinet file and how to locate the files contained in
a cabinet file.
Copying an Entire *.Cab File
The following examples demonstrate how to use the Extract command to copy
the entire cabinet file to another location.
To copy a cabinet file named Excel2.cab to the current directory, use the
following syntax:
extract /c a:\excel2.cab excel2.cab
To copy a cabinet file named Excel2.cab to the directory C:\Disk2, use the
following syntax:
extract /c a:\excel2.cab c:\disk2\excel2.cab
Copying Files from a *.Cab File
Below are some examples of how to copy all of the files from a cabinet
file.
To copy all of the files from all cabinets on all disks to the directory
C:\Flat:
extract /e /a /l c:\flat a:\excel1.cab
NOTE: The /a switch extracts all files beginning with the first cabinet, so
Disk 1 should be in drive A when you use Extract with this switch.
To copy all of the files from the Excel4.cab cabinet to the current
directory, use the following syntax:
extract /e a:\excel4.cab
Locating a File in a *.cab File
If you need only a single file that is contained in one of the cabinet
files, you can search for it using the /d switch with Extract.exe. After
you find the file, you can use Extract.exe again to copy the file to the
desired location. The following examples show how to use the extract
command to find files.
To list all files in a cabinet file, use the following syntax:
extract /d a:\<cabinet filename>
To list all *.exe files in a cabinet file, use the following syntax:
extract /d a:\<cabinet filename> *.exe
Copying a Single File from a *.Cab File
The following are examples of how to use Extract to copy a single file from
a cabinet file.
To extract Any.exe to the current directory, use the following syntax:
extract a:\<cabinet filename> any.exe
To extract Any.exe to C:\Excel, use the following syntax:
extract a:\<cabinet filename> any.exe /l c:\excel