Home » Questions » Computers [ Ask a new question ]

7-Zip and unzipping from command line

7-Zip and unzipping from command line

I am looking to use the command line 7-Zip to unzip a folder.

Asked by: Guest | Views: 49
Total answers/comments: 2
Guest [Entry]

"7z x example.zip -oexample

Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]

<Commands>
...
x: eXtract files with full paths
<Switches>
...
-o{Directory}: set Output directory

Edit:

7z x *.zip -o*

extracts all *.zip archives to subfolders with names of these archives.

Strangely, I had to go to the full help file to find this example; it isn't shown for 7z /?."
Guest [Entry]

"For p7zip:

7za e file.7z"