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 at a later date.

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

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.

Introduction

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

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.

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 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.

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

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

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.

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.

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.

  • Click Start, Programs, Accessories, System Tools, and click the System Information icon.
  • From the Tools drop-down menu, select System File Changer.
  • 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:

  • Click Start, Programs, Accessories, System Tools, and click the System Information icon.

  • From the Tools drop-down menu, select System Configuration Utility.

  • Click Extract File.

  • In the extract one file from installation dialog box, type the name of the file to extract, and click start.

  • In the Restore from box, type the location of where the cabinets are located.

  • In the Save in box, type c:\ and press Enter.

  • Click OK, and then click Yes to create a folder for the extracted file.

  • Drag the new extracted file from the new location to the location where the file needs to be placed.

  • Reboot the computer.

  • How to restart Microsoft Windows.

  • See our cabinet definition for further information and related links.
  • Microsoft Windows help and support.