HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

expand — Uncompress Windows Cabinet files. More information: <https://learn.microsoft.com/windows-server/admi

Submitted by: @import:tldr-pages··
0
Viewed 0 times
cabinetcommandwindowsfilescliexpanduncompressmore
windows

Problem

How to use the expand command: Uncompress Windows Cabinet files. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/expand>.

Solution

expand — Uncompress Windows Cabinet files. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/expand>.

Uncompress a single-file Cabinet file to the specified directory:
expand {{path\to\file.cab}} {{path\to\directory}}


Display the list of files in a source Cabinet file:
expand {{path\to\file.cab}} {{path\to\directory}} -d


Uncompress all files from the Cabinet file:
expand {{path\to\file.cab}} {{path\to\directory}} -f:*


Uncompress a specific file from a Cabinet file:
expand {{path\to\file.cab}} {{path\to\directory}} -f:{{path\to\file}}


Ignore the directory structure when uncompressing, and add them to a single directory:
expand {{path\to\file.cab}} {{path\to\directory}} -i

Code Snippets

Uncompress a single-file Cabinet file to the specified directory

expand {{path\to\file.cab}} {{path\to\directory}}

Display the list of files in a source Cabinet file

expand {{path\to\file.cab}} {{path\to\directory}} -d

Uncompress all files from the Cabinet file

expand {{path\to\file.cab}} {{path\to\directory}} -f:*

Uncompress a specific file from a Cabinet file

expand {{path\to\file.cab}} {{path\to\directory}} -f:{{path\to\file}}

Ignore the directory structure when uncompressing, and add them to a single directory

expand {{path\to\file.cab}} {{path\to\directory}} -i

Context

tldr-pages: windows/expand

Revisions (0)

No revisions yet.