Please find my suggestion for the English text:
Smart Archive Extraction (enhanced)
Functional Overview
This Button enables the user to extract selected archives, with the option to delete the archives after extraction.
- It supports all the archive types that DOPUS supports.
- The programmed Button will create target subfolders for the cases where the archive contains more than one folder on the first level.
- The Button remains disabled until the user selects at least one archive file.
- The Button will work in the DOPUS Dual Display mode. The user can extract the archive to the source or destination pane, with options for deleting the original archive(s) and handling the case where the target folder already exists.
- The Button automatically renames an existing target folder in Single Display mode and prompts the user to keep or delete the archive after extraction.
- An information dialogue box describing changes will display:
- After the extraction completes and
- When at least one target folder already exists or,
- When the user selected non-archive files.
Subfolder creation
If the archive file contains only one folder on the first level,
Root
└─ archive.zip
└─ single folder
the Button script will extract the folder directly under the root folder:
Root
├─ single folder
└─ archive.zip
└─ single folder
If the archive file contains several items on the first level,
Root
└─ archive.zip
├─ folder 1
├─ folder 2
└─ readme.txt
the Button script will create a new folder, name it with the archive file name, and extract the archived folders to this folder:
Root
├─ archive
| ├─ folder 1
| ├─ folder 2
| └─ readme.txt
└─ archive.zip
├─ folder 1
├─ folder 2
└─ readme.txt
Included language overlays
English
German
French
How to Install
- Drag and drop the dcf file onto an appropriate toolbar. For further information review: How to use buttons and scripts from this forum
- To change the display language from the default English:
- Open the customize mode and edit the Button.
- In the Scriptcode Tab, change the first line of the file type name “Archives” to your preferred display language.
- Additionally, you can rename the Button.
How to Use
Here are the options for the case when a target folder already exists (only in DOPUS Dual Display mode)
-
Choose the archives you want to extract.
-
Dual Display mode:
- Choose an option for the case where a target folder already exists
- Choose a delete option (the default selection is “delete all archives”)
- Choose to extract the archives to the source or destination pane.
-
Single Display mode:
The script extracts the archives to the source folder, but it will rename the existing folder before extraction if a target folder exists. -
In dual display mode, when you have selected “Delete-prompt for each archive” or using the single display mode, the script will open a dialogue box and offer the user the option to delete the current processed archive:
-
Suppose the user has selected both archived and non-archivde files, or a target folder that already exists. In that case, the script will open a dialogue box with information about changed folders or skipped non-archive files:
Credits
I adapted this Button from fred’s “Smart Archive Extraction”. See Smart archive extraction 2.
I send a huge thank you to @fred.
Based on a user request to delete an archive after extraction, I changed the script and then developed it further. So after consulting with fred, I created a new button topic.
Further Development
Please share any problems or ideas that could improve this Button. I would welcome support regarding the English and French translations. Since I have not programmed in years, I would also welcome suggestions concerning the script code.
My testing of the Button indicates that it is working correctly.