Page 5 of 6

Re: Extractor - Extract, cleanup and delete archives

Posted: 17 Nov 2015 20:05
by kunkel321
highend wrote:Nice work, very professional! ...
Thanks!

Re: Extractor - Extract, cleanup and delete archives

Posted: 20 Nov 2015 12:46
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

Re: Extractor - Extract, cleanup and delete archives

Posted: 19 Dec 2015 18:05
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.... :)

Re: Extractor - Extract, cleanup and delete archives

Posted: 19 Dec 2015 18:33
by highend
When I'm done with my current project, there will be "Compactor"...

Re: Extractor - Extract, cleanup and delete archives

Posted: 25 May 2019 22:18
by lian00
Thanks for the script. It was exactly what I was searching.

Re: Extractor - Extract, cleanup and delete archives

Posted: 09 Jul 2019 15:56
by lian00
I have a problem with the script : the deletion after dezipping does not work (Bandizip).

Re: Extractor - Extract, cleanup and delete archives

Posted: 10 Jul 2019 10:21
by highend
I'm using Bandizip as well and deleting works perfectly fine so maybe you should be more specific...

Re: Extractor - Extract, cleanup and delete archives

Posted: 10 Jul 2019 10:43
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.

Re: Extractor - Extract, cleanup and delete archives

Posted: 10 Jul 2019 10:48
by highend
Show the contents of the Extractor.ini file, show a screenshot of the window after extracting the file

Re: Extractor - Extract, cleanup and delete archives

Posted: 10 Jul 2019 10:57
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

Re: Extractor - Extract, cleanup and delete archives

Posted: 10 Jul 2019 11:06
by highend
Again, show the window before you click on the "Delete file(s)" button...

Re: Extractor - Extract, cleanup and delete archives

Posted: 10 Jul 2019 11:24
by lian00
Sorry to be so dumb.
2019-07-10_11h23_03.png
2019-07-10_11h23_03.png (18.51 KiB) Viewed 495 times

Re: Extractor - Extract, cleanup and delete archives

Posted: 11 Jul 2019 10:34
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...

Re: Extractor - Extract, cleanup and delete archives

Posted: 17 Jul 2019 16:29
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

Re: Extractor - Extract, cleanup and delete archives

Posted: 15 Aug 2019 18:02
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!