Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using the 7-Zip commandline to extract a ZIP archive called abc.zip which is an archive with a folder called 'zipper' with three text files in it (a.txt, b.txt, and c.txt).

My problem is when I extract it with the following command:

7z e C:\abc\abc.zip -y oC:\abc

7-Zip extracts everything, but it doesn't extract the folder 'zipper', it just extracts a.txt, b.txt and c.txt and puts them in the output destination (that is, C:\abc).

How can I make 7-Zip just extract the actual folder?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

You need to use 7z x archive.zip to extract with full paths. See: http://sevenzip.sourceforge.jp/chm/cmdline/commands/extract_full.htm

share|improve this answer

There should probably be a hyphen in front of the o:


Also consider the -r option for recursion.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.