we3fan Posted June 12, 2020 Posted June 12, 2020 (edited) 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 June 12, 2020 by we3fan
we3fan Posted June 12, 2020 Author Posted June 12, 2020 Thanks, I tried with WinRAR before but it gave me an error, I guess I need to use a more updated WinRAR version.
jumper Posted June 12, 2020 Posted June 12, 2020 Unless disabled (for speed), Explorer's built-in search also searches within zip files. 1
jaclaz Posted June 12, 2020 Posted June 12, 2020 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 2
we3fan Posted June 12, 2020 Author Posted June 12, 2020 Thanks guys. Yes, jaclaz is right, I meant "compressed", I edited the 1st post to avoid confusion.
jumper Posted June 13, 2020 Posted June 13, 2020 A batch file could extract to a temp folder then search there.... 1
jaclaz Posted June 13, 2020 Posted June 13, 2020 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 1
jaclaz Posted June 14, 2020 Posted June 14, 2020 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 and Windows 7 up. jaclaz 1
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now