How to extract files from the Windows cabinets

Updated: 07/13/2023 by Computer Hope
Windows logo

Windows cabinets are file archives that end with the extension .cab. They contain essential files needed for installing Windows and other software onto the computer later.

Note

This page does not cover how to extract files from other compressed files, like .zip, and .rar. For help with these files, see: How to extract or decompress a compressed file.

Because of the differences in the various versions of Windows, follow only the instructions for your version of Windows to help prevent confusion.

Introduction

Before extracting any files from the cabinets, ensure that the below information is known.

Location of cabinets Where the cabinets are located. Below is a listing of locations to where the cabinets may be located:

D:\WIN95
D:\WIN98
D:\WIN9X
C:\Windows\Options\cabs
C:\Windows\Options\Install

*The above listings are assuming you have installed Windows at C:\Windows and that the CD-ROM (compact disc read-only memory) drive is D:\.

If you are using a diskette version of Windows 95, determine what cabinet holds the file that needs to be extracted. For example, if the file is win95_04.cab the file is located on disk 4.

Extraction Tool Windows 98 and Internet Explorer 4.0 use a new algorithm to compress the cabinet and therefore cannot use the Extract.exe file included with Windows 95. It is required that the user use the Extract.exe included with the operating system or version of Internet Explorer.

Below is a listing of commonly used or needed extract lines and a short description of each line. For a listing of all switches and options, see our extract command overview.

extract /d c:\windows\options\cabs\win95_02 - Utilizing the /d switch lists the contents of the win95_02 cabinet.

extract /a /d c:\windows\options\cabs\win95_02.cab mmsystem.dll - Utilizing the /a and /d switch locates the mmsystem.dll by searching win95_02.cab and beyond.

extract c:\windows\options\cabs\win95_10.cab mmsystem.dll /l c:\windows\system - Knowing what cabinet contains a particular file, you can use this command to extract file(s). The /l switch is used to specify the location to where you want the file to be placed once extracted.

extract /a c:\windows\options\cabs\win95_02.cab mmsystem.dll /l c:\windows\system - Using the /a switch searches cabinets 02 and beyond for mmsystem.dll. Once located, the file would be extracted from the appropriate cabinet and then placed into the c:\window\system directory. The location of the cabinet may vary on your computer.

Windows 98 and Windows Me users

Tip

Users who are using Windows 98 or Windows Me can double-click the cabinet containing the file they need, and copy and paste that file from that cabinet.

Tip

Users who are using Windows 98 or Windows Me can search the directory with the cabinet files. In the Find: All Files dialog box, type the name of the file you are looking for in the Containing Text box. For further help, see: How to find a file on a computer.

Tip

Users who need to restore from the command line can use the Windows extract command helper tool by typing ext when booting from the Windows 98 or Windows Me startup diskette.

Windows 98 and Windows Me users can use the Windows System File Checker Tool to extract files by following the steps below.

  1. Click Start, Programs, Accessories, System Tools, and click the System Information icon.
  2. From the Tools drop-down menu, select System File Changer.
  3. Specify the system file to restore and click Start.

Windows Me reporting extract file error because of protected files

Receiving the below error when attempting to extract Windows Me files.

Extract File
The specified file is protected and may not be copied or deleted.

To bypass this error, follow the steps below:

  1. Click Start, Programs, Accessories, System Tools, and click the System Information icon.
  2. From the Tools drop-down menu, select System Configuration Utility.
  3. Click Extract File.
  4. In the extract one file from installation dialog box, type the name of the file to extract, and click start.
  5. In the Restore from box, type the location of the cabinets.
  6. In the Save in box, type c:\ and press Enter.
  7. Click OK and then Yes to create a folder for the extracted file.
  8. Drag the new extracted file from the new location to the location where the file needs to be placed.
  9. Reboot the computer.