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 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,476