2018-06-13 11:23:43 +01:00
|
|
|
# expand
|
|
|
|
|
|
|
|
> Uncompress one or more Windows Cabinet files.
|
2019-08-22 13:37:57 +01:00
|
|
|
> More information: <https://docs.microsoft.com/en-us/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}}`
|
|
|
|
|
2018-06-14 16:18:12 +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`
|