Search folders that contain txt files that contains a specific word

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Search folders that contain txt files that contains a specific word

Post by *petermad »

2Fla$her
FileMask.wdx, maybe?
That works - nice little plugin - hard to find. Not on totalcmd.net and only reference I could find here is: viewtopic.php?p=322936#p322936
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2985
Joined: 2020-01-18, 04:03 UTC

Re: Search folders that contain txt files that contains a specific word

Post by *Fla$her »

2petermad
Yes, for some reason the author didn't add TwinKey, TWinCmd, TCToolbar, Obex, FSE, FNUL, ClipCont and FileMask.
I've been using these plugins and tools for many years. I didn't think that experienced users here might not know about them. Fortunately, it's possible to take them from the Downloads page.
Overquoting is evil! 👎
NotNull
Senior Member
Senior Member
Posts: 298
Joined: 2019-11-25, 20:43 UTC
Location: NL

Re: Search folders that contain txt files that contains a specific word

Post by *NotNull »

rockberto wrote: 2024-07-16, 08:48 UTC Is there a way in total commander to search and display only folders that contain text files that contain a specific word?
Can't test at the moment, but the FileInDir plugin claims:
The FileInDir content plugin is a replacement of the legacy FileInDir plugin by olesio. It can be used to search for directories which contain specified files, and optionally with specified text content.
Furthermore, it can be used in the search dialog for a full text search.

Sounds like this should get the job done; worth a try ...
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Search folders that contain txt files that contains a specific word

Post by *petermad »

2Fla$her
I didn't think that experienced users here might not know about them
Of the more than 150 plugins and tools i have, I only have TConsole, FileX, TCmenu, TCToolbar and now FileMask from this author - and of these only two (Tconsole and FileX) has a dedicated page in this forum. VadiMGP really doesn't do much to promote his work.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Search folders that contain txt files that contains a specific word

Post by *petermad »

2NotNull
Sounds like this should get the job done;
Yes, FileInDir can actually get the work done in one go. Notice that is does not include the base dir in the search. I don't know how comprehensive the search feature is, but it can find text in ANSI text files.

And as with FileMask the file type (and search word) has to be manually put in the fileindir.ini file (and TC restarted).

Sample entry for fileindir.ini:

Code: Select all

[txt_files]
IgnoreCase=1
SearchFile=*.txt
SearchContent=2023
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
NotNull
Senior Member
Senior Member
Posts: 298
Joined: 2019-11-25, 20:43 UTC
Location: NL

Re: Search folders that contain txt files that contains a specific word

Post by *NotNull »

petermad wrote: 2024-07-22, 08:30 UTC Yes, FileInDir can actually get the work done in one go.
Thank you for testing! That means there is another way to get this done (although I still like rockberto's creative solution much better :))
Post Reply