10

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.

arcee123
  • 101
  • 9
  • 41
  • 118

2 Answers2

8

Try this instead:

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

BlackBeard
  • 10,246
  • 7
  • 52
  • 62
1
  # extract with sub-dirs to ./tn
  7z x -otn lc-3.39.0.zip
  # move to . skipping ./tn/<junk_root>/*
  mv tn/**/* .
  # remove empty ./tn
  rm -rf tn

incidentally does this unscrupulously per all root (assumed) junk dirs

Zaira
  • 42
  • 2