Search code examples
zip7zip

how do I extract 7-zip zip file without directory


I have this command:

7z e -oD:\Data\ODS_Source\* D:\Data\DATA_DROP\Source.zip

This results in D:\Data\ODS_Source\Source\<files>.<ext>

I need D:\Data\ODS_Source\<files>.<ext>

How do I eliminate the folder creation?

Thanks.


Solution

  • Try this instead:

    7z e -oD:\Data\ODS_Source D:\Data\DATA_DROP\Source.zip