Welcome to the Mythicsoft Q&A site for:

- Agent Ransack
- FileLocator Lite
- FileLocator Pro

Please feel free to ask any questions on these products or even answer other community member questions.

Useful Links:

- Contact Us
- Help Manuals
- Mythicsoft Home
0 votes

I'm looking to run a search in FileLocatorPro that returns a list of zip files that include a .txt file that contains my search terms.

Here is an example file structure for my issue

  • Z:\ZIP.zip\file1.zip\text.txt
    -- text.txt contains "ABC"
  • Z:\ZIP.zip\file2.zip\text.txt
    -- text.txt contains "ABC"
  • Z:\ZIP.zip\file3.zip\text.txt
    -- text.txt contains "123"
  • Z:\ZIP.zip\file4.zip\text.txt
    -- text.txt contains "DEF"
  • Z:\ZIP.zip\file5.zip\text.txt
    -- text.txt contains "ABC"
  • Z:\ZIP.zip\file6.zip\text.txt
    -- text.txt contains "GHI"
  • Z:\ZIP.zip\file7.zip\text.txt
    -- text.txt contains "123"

When I search for "ABC", what I want is for the results to contain file1.zip, file2.zip and file5.zip because the text.txt files contain "ABC" and the text.txt files for the other zip files do not. Is there any way to do this in FileLocatorPro?

Thank you!

EDIT

Here are some screenshots of what I'm getting with the search terms and what I wish to get.

Results in File Locator Pro

![Results in File Locator Pro][1]
[1]: //qa.mythicsoft.com/?qa=blob&qa_blobid=896474585391478128

Results in Windows search when "ABC" is searched on the unzipped file. This is what I would like File Locator Pro to output so I can simply copy the ZIP files I need.

![Results in Windows search when "ABC" is searched on the unzipped file. This is what I would like File Locator Pro to Output][2]
[2]: //qa.mythicsoft.com/?qa=blob&qa_blobid=16147555487464124226

I want to accomplish this task with File Locator Pro instead of the Windows Search because I have 259 ZIP files to search through that equal 160 GB unzipped. Within each zip file is approximately 2500 ZIP files and only about 5%-10% of those ZIP files is the data I need, and the only identifier is the index.text file containing the "ABC" text.

I would rather avoid using windows search to accomplish the task because unzipping all of the files (since Windows search can't search for zip files within zip files like File Locator Pro can) would be very time consuming. Ideally, I would like to run the search through File Locator Pro (with the understanding that it will also be time consuming but at least would be something that could run in the background), obtain the ZIP files I need, and move on with my life. :)

Thanks for the continued help!

by (25 points)

1 Answer

+1 vote

Yes, that should be a fairly straight forward search in FileLocator Pro. Make sure you have switched on ZIP searching in the Compressed Files tab:

enter image description here

Then a simple search like:

File name:       *.txt
Containing Text: ABC
Look In:         Z:\ZIP.zip

If the text file must be called text.txt then use

File name:       text.txt

EDIT - question clarified

To list just the ZIP files go to the Reports tab and choose the File List report, style Tabulated - Text. Then click on the Report Options button and show ONLY the Location field:

Location only

Select the ZIP files you're interested in copying and press Ctrl+C. Then go back to your search and click the Multiple Folders button for the Look In field and paste the ZIP file list into edit box:

Multi-folder

Finally clear out the the other criteria so you're left with something like:

File name:       
Containing Text: 
Look In:         Z:\ZIP.zip\file1.zip;Z:\ZIP.zip\file2.zip;Z:\ZIP.zip\file3.zip;Z:\ZIP.zip\file4.zip;Z:\ZIP.zip\file5.zip;Z:\ZIP.zip\file6.zip;Z:\ZIP.zip\file7.zip;Z:\ZIP.zip\file8.zip;Z:\ZIP.zip\file9.zip

Now when you search you'll have a list of the ZIP files you can copy.

by (30.1k points)
Thank you very much for your reply! This was helpful, but unfortunately I'm still having the issue of only having the text file returned in the zip returned, not the entire ZIP file.

I've edited the original post to include screenshots of what search results I'm getting and what I want the results to look like and why.
Ah, I see. FileLocator Pro can't copy the 'parent' zip, only the actual files that it finds. I'll add your request to the Issue Tracker. I've edited the answer to show a multi-step work-around.
...