Extract Microsoft CAB Files in Windows

In short
To extract Microsoft CAB files, you can use the expand command in command line as follows:

expand cabfile -F:* path

which will extract all the files from the cabfile in the give path. For example

expand en-catalog-web.cab -F:* c:\expanded

Single files
I experienced problems with extracting a cab file where within a single xml file was stored. I found out that renaming the files after extraction can solve the problem. This is done by doing the previous example with an -r option:

expand en-catalog-web.cab -F:* c:\expanded -r

Extracting all the files to the current working directory can be done as follows:

expand cabfile -F:*  -r

Leave a Reply

Your email address will not be published. Required fields are marked *