I'm not really sure where to start with this and could use some help. Basically, I need a quick way to find all .zip files within a directory so I can extract everything at once. I have tried using branch view and then filtering out the .zip files, but that takes a while.
I used to be able to do this easily with a program named ExtractNow; there was a context menu option that would search for all .zip files within a directory. Unfortunately, I had to stop using it since they started bundling malware/adware with it.
Script that will find/display all .zip files in a directory?
Re: Script that will find/display all .zip files in a direct
Something like this?
Displays all .zip files in the current directory (recursive) in a paperfolder...
Code: Select all
paperfolder("ZipFiles", quicksearch("*.zip"));
One of my scripts helped you out? Please donate via Paypal
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Script that will find/display all .zip files in a direct
Wowee, cool script!
FAQ | XY News RSS | XY Twitter
Re: Script that will find/display all .zip files in a direct
Best one I've ever written!
One of my scripts helped you out? Please donate via Paypal
Re: Script that will find/display all .zip files in a direct
That definitely gives you all .zip files in a directory—but it won't let me select everything and unzip everything at once. Is that kind of thing even possible?
Re: Script that will find/display all .zip files in a direct
If you want to manually select files from that paperfolder list and extract them, execute this afterwards:
Or if you really want to extract all found files you could do this without showing a paperfolder by:
Code: Select all
foreach($zip, <get "SelectedItemsPathNames" |>) {
zip_extract($zip, gpc($zip, "path") . "\" . gpc($zip, "base"));
}
Code: Select all
foreach($zip, quicksearch("*.zip", , "|")) {
zip_extract($zip, gpc($zip, "path") . "\" . gpc($zip, "base"));
}
One of my scripts helped you out? Please donate via Paypal