Smart archive extraction

Purpose

Extract selected archives and create a target subfolder only when needed. All archives type supported by DOpus are processed. See group archives in file types.

Let’s say you have one archive in your D: drive.

If the archive is for instance structured as

(D:)
 └──🤐archive.zip
     └── 📁only one directory

then extract its content such as you get

(D:)
 ├──📁only one directory
 └──🤐archive.zip
     └── 📁only one directory

But if the archive is for instance structured as

(D:)
 └──🤐archive.zip
     ├── 📁dir 1
     ├── 📁dir 2
     ├── 🖹file 1.txt
     └── 🖹file 2.txt

it creates a sub-folder in the destination named after the archive, and extracts the archive contents to that folder.

(D:)
 ├──📁archive
 |   ├── 📁dir 1
 |   ├── 📁dir 2
 |   ├── 🖹file 1.txt
 |   └── 🖹file 2.txt
 └──🤐archive.zip
     ├── 📁dir 1
     ├── 📁dir 2
     ├── 🖹file 1.txt
     └── 🖹file 2.txt

How to use

Select archives you want to extract content and click the button.

Credits

@ lxp for his post Extract archives with condition? - #2 by lxp

Additions

  • Target folder dialog pops up when in dual display.
    image

  • error and warning dialogs in English and French when you select nothing or if selected items are not archives.


Download button

Warning : Only for DOpus v12.22 and higher.

  • v2021.08.09 Extract (smart).dcf (10.1 KB)

    • Fix : target lister is only asked once if multiple archives are selected.
  • v2021.08.08 Extract (smart).dcf (10.0 KB)

    • Only use if you prefer being asked for target at each file.
6 Likes

Button update

Fix : target lister is only asked once if multiple archives are selected.

1 Like