Extract an archive to a destination directory.
7z x archive.7z -o.\outputExtract an archive to a destination directory.
7z x archive.7z -o.\outputExtract an archive to a destination directory.
7z x archive.7z -o.\output| Option / clause | Description |
|---|---|
x <archive> | Extract while preserving paths. |
-o<directory> | Set the output directory; no space follows -o. |
-y | Assume yes for prompts. |
-aoa / -aos / -aou / -aot | Choose how extracted files interact with existing files. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.