winzip icon

ZipSearch 1.4.6

Submitted on: 12/14/2018 9:47:20 AM
By: Rde 
Level: Advanced
User Rating: By 5 Users
Compatibility: VB 5.0, VB 6.0
Views: 12820
author picture
     ZipSearch 1.4.6 * Search File Names & Content in File System & Zip Files

ZipSearch simulates the Windows search utility and extends on it to include zip file contents. Searches are based on name matching, and can also perform date and size filtering. Limited wildcard characters are supported for matching of folder and file names. Searches within file text supports multi-line, case-sensitive and case-insensitive matching, as well as whole-word-only searches. This tool can also perform searches within the text content of zipped files.

It can search within multiple locations simultaneously, and search to any sub-folder depth. Files and folders can be selected for exclusion from searches. Also, it catalogues all searched locations so subsequent searches are lightning fast.

This utility does not discard the results of the searches it performs, allowing the navigation of search results within the utility without losing the original list of results. Up to thirty searches can be performed before the oldest results are over-written by subsequent searches. More advanced search filtering can be achieved by merging the common items from the result of the multiple searches.

ZipSearch remembers all your settings. You can define groups of multiple paths for searching. The tree and list respond to the scroll wheel without the need to click on them first. File system monitoring updates ZipSearch as changes are made outside of the program. The interface remains responsive to user actions at all times, and allows access to search result items even as the search continues.

ZipSearch combines Shell change notification with the file system, removable media like CDs and DVDs, memory sticks, and USB drives to respond to all changes both in the search class and the GUI dynamically.

ZipSearch uses Info-Zip's Unzip32.dll to open zipped files for content searching and making zipped files available for display. Unzip32.dll is freely available at ZipSearch also utilizes Alexander Roshal's Unrar.dll freely available at

Contributors: XP Styles thanks to Amer Tahir. Auto-complete thanks to Dan Redding. String comparison thanks to Ralph Eastwood. Thanks also to Norm Cook for inspiration from his brilliant ListView-FileListBox. Shell change notification module thanks to Louis -

Revision 1.4.6 - 14 Dec 2018

Minor fixes and improvements. Update prompted by comment from Marcio. This is just half of his request - multiple-search terms! Ability to search inside docx files yet to be done. Seems to be working pretty well, but please test and let me know of any problems.

Suggestions and bug reports welcome (please email me error logs). Happy coding, Rd :)

Please find more information in the ZipSearch Documents folder.


winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net

Other 23 submission(s) by this author


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

6/16/2016 9:10:14 AMDavid

Excellent, thank you for sharing.
(If this comment was disrespectful, please report it.)

7/15/2016 9:07:44 AMRde

Trust me, you really want this update:
ZipSearch 1.3.6 (or later) and Info-Zip UnZip32 6.0.0 (or later)
(If this comment was disrespectful, please report it.)

7/21/2016 4:54:02 PMdave Carter

Gob smackingly awesome code and program, yay :D
(If this comment was disrespectful, please report it.)

7/24/2016 11:40:45 AMRde

Glad you like it dave
Got it working pretty well now
Any suggestions for improvement welcome
Happy coding,
Rd :)
(If this comment was disrespectful, please report it.)

8/17/2016 10:34:21 PMLorin

Just initial trial and see that the search params need a little help.
Items Named:
Search * should find all files
Search *.* should find only e.g. A.B
Search *.*.* should only find e.g. A.B.C
This helps to filter better.

(If this comment was disrespectful, please report it.)

8/17/2016 10:37:04 PMLorin

Also a Between for Date and Size would be a great help.
Keep up the great work !

(If this comment was disrespectful, please report it.)

8/19/2016 7:54:36 AMRde

Hi Lorin

No probs, I will look into these

Between Dates option great idea :)
This should be pretty easy I think

About Strict File Name Matching
Firstly, please try resetting the
Strict File Name Matching option
Did this help?

With Strict File Name Matching turned
off Search criteria currently adds
* and * to Yourtext >> *Yourtext*

Where Yourtext can contain wildcards
already. This was to simulate windows
search utility behavior.

Please let me know.

Will add Date Between feature ASAP.

Happy coding,
Rd :)

(If this comment was disrespectful, please report it.)

8/19/2016 10:41:40 AMRde

And Size Between feature ASAP.
(If this comment was disrespectful, please report it.)

4/4/2018 4:59:56 PMdave Carter

Rohan, Congratulations, this is Ludicrous Speed, I'm proper blown over, well done mate!
Dave :)
(If this comment was disrespectful, please report it.)

4/9/2018 6:29:35 AMRde

Hi again Dave
Thanks and happy coding :)
(If this comment was disrespectful, please report it.)

4/9/2018 10:42:54 PMLorin

In Zip Search folder(where I unzippedi it ).
Change "Items Named" to *, hit Enter.
Got crash. "Key Not Unique In Collection".
Debug at "Private Function DoSearch(ByVal rootIdx As Long, ByVal iDim As Long) As Long
cSearch.FindFiles rootIdx, "*" & .sFilter & "*", .iDepth, .sContent

Hit F5, hourglass still there,
Red [X} will not close and 'Close" will not close.
IDE will stop.
* is a valid search !

As an .EXE it runs but boings several times. Errors ?
I do not see error logging to a file so do not know what happened. Please add error logging to a file.

(If this comment was disrespectful, please report it.)

4/14/2018 7:59:31 AMRde

Update 1.4.5 fixed errors reported by Lorin
Happy coding,
Rd :)
(If this comment was disrespectful, please report it.)

10/18/2018 4:43:41 AMkkp

Thank you so much, you are so great!!!
(If this comment was disrespectful, please report it.)

10/20/2018 11:34:08 AMRde

Hi kkp
Thanks glad you like it
Happy coding
(If this comment was disrespectful, please report it.)

11/27/2018 7:28:09 PMMM

Excellent program! Congratulations!
Could you include in the next revision the search of the text inside the word files with the extension ".docx"? And if it is possible to fetch several words at the same time. Example: Containing text: apple; pineapple; orange. (files containing the three words).
Thank you very much.
(If this comment was disrespectful, please report it.)

11/28/2018 4:46:51 AMRde

Hi Marco
Both your requests are very do-able
but I think pretty complex to implement
I will need to add a new path through the
search class to catalogue docx files contents
Also, searching multiple terms is a can of worms
(complex to implement and very open ended)
Continues next comment...
(If this comment was disrespectful, please report it.)

11/28/2018 4:55:04 AMRde

However I will look into doing these
For now, you already can achieve this by
doing the following :
Rename your ".docx" files to ".zip" and you can
search them just like a zip file.
Also, you can perform multiple searches within
the same scope altering the search term then
select the "Merge Common Results" option
Thanks for your feedback, much appreciated
Look for the next update
Happy coding :)
(If this comment was disrespectful, please report it.)


Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)

To post feedback, first please login.