tldr/pages/windows/expand.md

25 lines
759 B
Markdown
Raw Normal View History

2018-06-13 11:23:43 +01:00
# expand
> Uncompress Windows Cabinet files.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/expand>.
2018-06-13 11:23:43 +01:00
- Uncompress a single-file Cabinet file to the specified directory:
`expand {{path\to\file.cab}} {{path\to\directory}}`
2018-06-13 11:23:43 +01:00
2018-06-14 13:12:14 +01:00
- Display the list of files in a source Cabinet file:
2018-06-13 11:23:43 +01:00
`expand {{path\to\file.cab}} {{path\to\directory}} -d`
2018-06-13 11:23:43 +01:00
- Uncompress all files from the Cabinet file:
`expand {{path\to\file.cab}} {{path\to\directory}} -f:*`
2018-06-13 11:23:43 +01:00
- Uncompress a specific file from a Cabinet file:
`expand {{path\to\file.cab}} {{path\to\directory}} -f:{{path\to\file}}`
2018-06-13 11:23:43 +01:00
- Ignore the directory structure when uncompressing, and add them to a single directory:
2018-06-13 11:23:43 +01:00
`expand {{path\to\file.cab}} {{path\to\directory}} -i`