tldr/pages/windows/expand.md

25 lines
762 B
Markdown
Raw Normal View History

2018-06-13 11:23:43 +01:00
# expand
> Uncompress one or more Windows Cabinet files.
> More information: <https://docs.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-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`
- 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:{{file}}`
- 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`