Puristus

How to extract CAB File using command line tools in Windows 10

How to extract CAB File using command line tools in Windows 10

In Windows environment, CAB refers to Cabinet files - an archive file format for Microsoft Windows. The format supports data compression and embedded digital certificates used for maintaining archive integrity. Using this file format, a user can store multiple files/folders into a single file with or without involving data compression in this archive.

Windows 10/8/7 can unzip or extract the contents of a compressed file as it is natively compatible with CAB files. Moreover, the OS can create, extract, or rebuild cab files. This means you do not require any additional third-party software for this task. All CAB files can be unzipped using basic Windows command line tools.

There are three built-in Windows command line tools for dealing with CAB files:

  1. expand.exe
  2. makecab.exe
  3. extrac32.exe

expand.exe

To see the command line option available for expand.exe, open a Command Prompt window, type the following and hit Enter:

expand /?

makecab.exe

To see the command line option available for makecab.exe, open a Command Prompt window, type the following and hit Enter:

makecab.exe

extrac32

To see the command line option available for extrac32, open a Command Prompt window, type the following and hit Enter:

extrac32 |more

Read: Extract RAR files on Windows 10 using these free Microsoft Store apps.

Extract CAB File using command line

To extract the contents of Cab files, you can use any of the above tools. Let us take the example of expand.exe tool.

To extract the contents of a .cab file, first change the directory to point to the location of the source using the CD command and then run the following command:

Expand TWC.cab -F:* C:\TWCFolder

Here you are extracting the contents of TWC.cab file into the C:\TWCFolder. -F is the number of files to expand. When you use '*', it means all the files.

When completed, the tool will display the complete list of extracted files.

Close the command prompt windows and go to Windows Explorer. There, the complete list of full extracted file structure should be visible to you.

Incidentally, several free file compression software including 7-Zip, let you easily compress or extract the contents of a CAB file on a Windows system.

How to change Left & Right mouse buttons on Windows 10 PC
It's quite a norm that all computer mouse devices are ergonomically designed for right-handed users. But there are mouse devices available which are s...
Emulate Mouse clicks by hovering using Clickless Mouse in Windows 10
Using a mouse or keyboard in the wrong posture of excessive usage can result in a lot of health issues, including strain, carpal tunnel syndrome, and ...
Add Mouse gestures to Windows 10 using these free tools
In recent years computers and operating systems have greatly evolved. There was a time when users had to use commands to navigate through file manager...