mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-08 21:46:13 +00:00
679 B
679 B
---
syntax: markdown
tags: [tldr, windows]
source: https://github.com/tldr-pages/tldr.git
---
# Expand-Archive
> A cmdlet in PowerShell is used to extract files from a compressed archive.
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.archive/expand-archive>.
- Extract a ZIP file to a folder:
`Expand-Archive -Path {{path oxample.zip}} -DestinationPath {{path oxtracted_files}}`
- Overwrite existing files:
`Expand-Archive -Path {{path oxample.zip}} -DestinationPath {{path oxtracted_files}} -Force`
- Preview without extracting:
`Expand-Archive -Path {{path oxample.zip}} -DestinationPath {{path oxtracted_files}} -WhatIf`
syntax: markdown
tags: [tldr, windows]
source: https://github.com/tldr-pages/tldr.git
---
# Expand-Archive
> A cmdlet in PowerShell is used to extract files from a compressed archive.
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.archive/expand-archive>.
- Extract a ZIP file to a folder:
`Expand-Archive -Path {{path oxample.zip}} -DestinationPath {{path oxtracted_files}}`
- Overwrite existing files:
`Expand-Archive -Path {{path oxample.zip}} -DestinationPath {{path oxtracted_files}} -Force`
- Preview without extracting:
`Expand-Archive -Path {{path oxample.zip}} -DestinationPath {{path oxtracted_files}} -WhatIf`