-
Jun 20th, 2022, 11:18 PM
#1
Thread Starter
Addicted Member
search 100drs of zip files and extract file or more
i have a folder containing thousands of zip files and I want to search and extract certain files to the path
list1 will contain a list of file names I want to search and extract.
here are a test batch zips
https://easyupload.io/kxadn0
just extract the main.zip and examine any zip files and look at the file names and try and search and extract them using list1 file names.
also, guys, I want it to be the fastest search since I have tons of zips so I want it to fly through it.
-
Jun 21st, 2022, 12:36 AM
#2
Re: search 100drs of zip files and extract file or more
do a google search for extract/zip sources. theres a few that can be found. the member wqweto has it even in this Signature.
I would start there.
second I would look a way to read the directory of the zip in memory, so no extracting, just getting the files names. so, again, u need to look into that by reading what those alternatives have for features.
and third, implement that into your own code.
-
Jun 21st, 2022, 01:45 AM
#3
Re: search 100drs of zip files and extract file or more
Out of curiosity I decided to Google this to see what options are out there for zip functionality for VB6. To be honest, results don't look too encouraging to me. Dead links, derelict websites that only work about half the time, ancient posts and pay walls are just some of the things I found. Nonetheless, I will post some of the more promising ones I came across.
https://www.vbforums.com/showthread....=1#post4211045
http://www.vb-helper.com/howto_shell_zip_and_unzip.html
https://www.toolbox.com/tech/program...th-vb6-120710/
This one is particularly promising:-
http://computer-programming-forum.co...7d1eb9f30e.htm
Specifically this post:-
Code:
You can use the ZLib dll which is free.
http://www.info-zip.org/pub/infozip/zlib/
There's a bit of a how-to on the VBAccelerator site.
http://www.vbaccelerator.com/codelib/zip/zlib.htm
Hope this helps.
regards,
Dave
I'm actually familiar with zlib because in another life long ago I actually used it for a VB6 application. However, I only used it because I needed a CRC32 function that was compatible with the PNG format and at the time that was the only place I could find a working implementation of CRC32. Anyways, that library is very popular and is used by a lot of programs to provide zip functionality. That might be your best bet.
-
Jun 21st, 2022, 02:09 AM
#4
Re: search 100drs of zip files and extract file or more
I was more thinking of him doing a google search to this specific site, but yeah theres others as well, but as u say, there can be dead links and can many bad sources.
but googling "here". will give u more results
https://www.google.com/search?q=zip+...w.vbforums.com
also, check wqweto code: https://github.com/wqweto/ZipArchive
-
Jun 21st, 2022, 02:55 AM
#5
Re: search 100drs of zip files and extract file or more
I still use the Zip Extraction Class provided by McMillan's Visual Basic Code, it uses the ZlibWapi.dll to extract files from ZIP archives.
The site doesn't exists anymore, but a backup can be found here:
https://web.archive.org/web/20100330...tionClass.html
-
Jun 21st, 2022, 07:06 AM
#6
Re: search 100drs of zip files and extract file or more
You can extract files fromZIP without any dependencies https://www.vbforums.com/showthread....IStorage-based
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|