Jump to content

Find text string in folder with more zipped files


we3fan

Recommended Posts

Hi guys, let's say I have a folder with 10 compressed files (RAR, 7-Zip), and there are some text files inside these compressed files, and I want to find a word or phrase inside these text files. What program is best to use on XP if I want to search the whole folder to find a word or phrase inside the compressed files?

Thanks for your time.

Edited by we3fan
Link to comment
Share on other sites


17 minutes ago, jumper said:

Unless disabled (for speed), Explorer's built-in search also searches within zip files.

 

Sure, but not in .rar and .7z ones, my guess is that by "zipped" OP actually meant "compressed" (in either RAR or 7-Zip formats).

jaclaz

Link to comment
Share on other sites

5 hours ago, jumper said:

A batch file could extract to a temp folder then search there....

 

Yep :), and I believe that all tools capable of doing these searches use this or a very similar approach "under the hood", possibly they are faster, but the data needs anyway to be decompressed *somewhere* to be searched.

jaclaz

Link to comment
Share on other sites

28 minutes ago, we3fan said:

Where can I find such a batch file for XP?

You cannot, you write one.

You can find examples and snippets, but invariably you will need to modify them to suit your needs, a few examples:
https://cects.com/using-the-winrar-command-line-tools-in-windows/

https://cects.com/automate-compression-tasks-cli/

https://superuser.com/questions/371384/extract-all-zips-in-a-directory-incl-subfolders-with-a-bat-file-or-dos-comm

It depends of course which "base" tool you want to use, 7-zip, RAR or - say - Peazip:

https://www.peazip.org/peazip-free-archiver.html

I had a look around and it does exist a Commercial tool that seemingly does what you want, but it isn't exactly cheap:
https://www.powergrep.com/

and probably does too much.

There is this free one:

https://dngrep.github.io/

but it is .Net :ph34r: and Windows 7 up.

jaclaz

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...