Seanzies93
Seanzies93

Reputation: 341

How to unzip a file to a target folder using 7-zip

So I know I can unzip a .zip file using

"C:\Program Files\7-Zip\7z.exe" e *.zip

but how do I do it so that I can choose which folder it will unzip it to?

Upvotes: 4

Views: 15653

Answers (2)

venkatesh b
venkatesh b

Reputation: 21

example:

'"C:\Program Files\7-Zip\7z.exe" x *.zip -oc:\path\to\directory -aoa'

flags -aoa are used to override the files.

Upvotes: 2

Adit
Adit

Reputation: 86

"C:\Program Files\7-Zip\7z.exe" e -oc:\path\to\directory *.zip

Upvotes: 7

Related Questions