Extractor - Extract, cleanup and delete archives

Discuss and share scripts and script files...
kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: Extractor - Extract, cleanup and delete archives

Post by kunkel321 »

highend wrote:Nice work, very professional! ...
Thanks!
ste(phen|ve) kunkel

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Extractor - Extract, cleanup and delete archives

Post by highend »

New version is out...
@Changelog:
v0.9.7:
* Fixed a bug with CleanUpFolder = true when the destination folder contains not only one subfolder
but at least one additional file
* New icon by courtesy of kunkel321
One of my scripts helped you out? Please donate via Paypal

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: Extractor - Extract, cleanup and delete archives

Post by kunkel321 »

Might as well program Extractor such that, if you activate it on a (already extracted) folder, it zips it for you using xyz settings.... :)
ste(phen|ve) kunkel

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Extractor - Extract, cleanup and delete archives

Post by highend »

When I'm done with my current project, there will be "Compactor"...
One of my scripts helped you out? Please donate via Paypal

lian00
Posts: 354
Joined: 09 Jul 2014 17:12

Re: Extractor - Extract, cleanup and delete archives

Post by lian00 »

Thanks for the script. It was exactly what I was searching.
Windows 10 64 bits

lian00
Posts: 354
Joined: 09 Jul 2014 17:12

Re: Extractor - Extract, cleanup and delete archives

Post by lian00 »

I have a problem with the script : the deletion after dezipping does not work (Bandizip).
Windows 10 64 bits

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Extractor - Extract, cleanup and delete archives

Post by highend »

I'm using Bandizip as well and deleting works perfectly fine so maybe you should be more specific...
One of my scripts helped you out? Please donate via Paypal

lian00
Posts: 354
Joined: 09 Jul 2014 17:12

Re: Extractor - Extract, cleanup and delete archives

Post by lian00 »

I  don’t know what to say :oops: I installed the script and the icon in toolbar. When I select a zip/rar file, the script shows the window and ask if I won’t to delete the archive file after unzipping and I select it. But the file won’t be deleted. It’s still there.
Windows 10 64 bits

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Extractor - Extract, cleanup and delete archives

Post by highend »

Show the contents of the Extractor.ini file, show a screenshot of the window after extracting the file
One of my scripts helped you out? Please donate via Paypal

lian00
Posts: 354
Joined: 09 Jul 2014 17:12

Re: Extractor - Extract, cleanup and delete archives

Post by lian00 »

OK, the files I extract are mainly rar files. They are not deleted and the window is closing after I click on the button (so no window).
BUT… zip files are correctly deleted. So the problem is only for rar files.

Code: Select all

[General]
Application=Bandizip
CleanUpFolder=1
DeleteArchives=1
DstInactivePane=0

[Bandizip]
AppFilePath=C:\Program Files\Bandizip\Bandizip64.exe
ExtractArgs1=/extract
Extensions=rar,zip,zipx,7z,001,cab,gz,img,iso,tar,tgz,wim
; "<AppFilePath>" <ExtractArgs1> "<destination folder>" "<archive1>" ... "<archiveX>"
; Not supported: ace,vhd
Windows 10 64 bits

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Extractor - Extract, cleanup and delete archives

Post by highend »

Again, show the window before you click on the "Delete file(s)" button...
One of my scripts helped you out? Please donate via Paypal

lian00
Posts: 354
Joined: 09 Jul 2014 17:12

Re: Extractor - Extract, cleanup and delete archives

Post by lian00 »

Sorry to be so dumb.
2019-07-10_11h23_03.png
2019-07-10_11h23_03.png (18.51 KiB) Viewed 4761 times
Windows 10 64 bits

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Extractor - Extract, cleanup and delete archives

Post by highend »

It's not the applications fault. I'm extracting dozens of .rar archives every day and all of them are deleted afterwards.

Get e.g. LockHunter (https://lockhunter.com/) and check if such an archive is in use when you hitting the delete button...
One of my scripts helped you out? Please donate via Paypal

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Extractor - Extract, cleanup and delete archives

Post by highend »

A small update:

Code: Select all

v0.9.8:
  + Added a pattern to recognize "*.rar.<3 digit incrementing number>" files
E.g. files like
<some tv show name>.rar.001
<some tv show name>.rar.002
...
are now recognized (and deleted) correctly
One of my scripts helped you out? Please donate via Paypal

aminomancer
Posts: 31
Joined: 26 May 2019 06:29

Re: Extractor - Extract, cleanup and delete archives

Post by aminomancer »

Anyone know the "right" way to get rid of the GUI? Because of the little delete GUI that confirms which archives you want to delete, this isn't really any faster for me than just extracting via 7-zip's context menu entry, clicking the archive, tapping the delete key. So I went through the ahk script and deleted the GUI, and replaced l_checkedFiles with l_filesToSelect. I only spent a few minutes on it so far so I didn't expect it to work at all, but that actually works for single archives... But when you do it for multiple archives and click "no" in the prompt, the files are separated somehow in the data sent to xyplorer and instead of deleting the files, xyplorer shows a weird menu-popup with the input data drawn as text. Kinda weird. Anyway I'm just wondering if there's a clean way to get rid of the confirmation dialogue. I still want to keep the multiple-archive prompt that asks if I want to merge the files into one folder or separate them. It's just the GUI component that is unnecessary for me since I would only use this script in the first place if my intention is to delete all the archives. Like if I didn't want to delete the archives then I'd just use the 7-zip context menu commands, since I can't use the "cleanup" feature as I mostly extract stuff where the compressed directory name is more important than the archive file's name. Like if I have a file website.zip and there's just a single directory inside it called content, then using the cleanup feature the "content" folder disappears and everything goes in a "website" folder. But if I were to upload it like that it'd break the website since a "content" folder could have a specific function defined in the code. So I just leave that off, or I use 7-zip's "extract here" which will create a "content" folder without a "website" folder above it. So the only thing that would really speed the process up for me compared to 7-zip's "extract to blahblahblah/" and "extract here" is to just automatically delete the archives without asking for confirmation, since confirming it is practically just as slow as manually deleting the archive myself. Thanks!

Post Reply