Let 7Zip install in same directory without subdirectory

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

Posted 2013-01-18T08:34:57.873

Reputation: 548

Answers

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

Posted 2013-01-18T08:34:57.873

Reputation: 1 171

You made my day!! Great thanks for that answer. The option "e" instead of "x" solved the problem. – Nasenbaer – 2013-01-18T10:19:21.653

I've just found any non responsable documentatino. Do you have any documentation link? – Nasenbaer – 2013-01-21T21:56:28.970

The only documentation that I know of, besides the program's self-documentation, is this.

– Sam – 2013-01-22T06:35:26.330