2018-06-13 11:23:43 +01:00
|
|
|
# expand
|
|
|
|
|
|
|
|
> Uncompress one or more Windows Cabinet files.
|
2022-10-04 16:06:23 +01:00
|
|
|
> 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:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`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
|
|
|
|
2023-02-20 07:23:49 +00: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:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`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:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`expand {{path\to\file.cab}} {{path\to\directory}} -f:{{path\to\file}}`
|
2018-06-13 11:23:43 +01:00
|
|
|
|
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
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`expand {{path\to\file.cab}} {{path\to\directory}} -i`
|