Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When using 7Zip to extract a zip file, it always creates a subdirectory I want to avoid to create.

The zip file:


The content files in zip file:


The Commandline:

x "C:\" -o"C:\" -y

The result:


Should be:


Can anyone find out the argument to avoid creating the "Test" subdirectory?

share|improve this question
up vote 1 down vote accepted

I tried this myself using the latest version of 7za on Windows 8 64-bit, and 7-Zip doesn't create the "Test" subdirectory.

Are you certain that the zip file doesn't contain the "Test" directory? If it does, you can use the e command instead of x to prevent it from retaining the archive's directory structure.

share|improve this answer
You made my day!! Great thanks for that answer. The option "e" instead of "x" solved the problem. – Nasenbaer Jan 18 '13 at 10:19
I've just found any non responsable documentatino. Do you have any documentation link? – Nasenbaer Jan 21 '13 at 21:56
The only documentation that I know of, besides the program's self-documentation, is this. – Sam Jan 22 '13 at 6:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .