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.

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

The zip file:

C:\Test.zip

The content files in zip file:

`ReadMe.txt`

The Commandline:

x "C:\Test.zip" -o"C:\" -y

The result:

C:\Test\ReadMe.txt

Should be:

C:\ReadMe.txt

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

share|improve this question

1 Answer 1

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

Your Answer

 
discard

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.