1

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?

Nasenbaer
  • 598
  • 1
  • 7
  • 19

1 Answers1

1

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.

Sam
  • 1,410
  • 1
  • 20
  • 33
  • 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](http://docs.bugaco.com/7zip/). – Sam Jan 22 '13 at 06:35