Search for directory "NameA" and file "NameB" at same time

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
jonathanpoulin
Member
Member
Posts: 131
Joined: 2020-12-19, 12:09 UTC
Location: Saint-Marc-des-Carrières, QC Canada
Contact:

Search for directory "NameA" and file "NameB" at same time

Post by *jonathanpoulin »

Hello all !

I looked at the help file but I cannot find the way, like the title says, to search (using the default Alt + F7 hotkey) for some directories and files at same time. Let's say by example, in a C# project structure, I would like to find all bin\ and obj\ directories and also all .user files in one search. This is just an example but I am actually using that search (so, in 2 steps for now) quite often to do a project clean up, keeping only actual source files.

Thanks
Jonathan
Thanks,
Jonathan Poulin
User avatar
HolgerK
Power Member
Power Member
Posts: 5411
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: Search for directory "NameA" and file "NameB" at same time

Post by *HolgerK »

<F1> : "When the search string contains a dot, Total Commander will look for the exact name match."

Search for: bin. obj. .user

or (in case .user is meant as all files with extension .user):
Search for: bin. obj. *.user

HTH
Holger
Make our planet great again
User avatar
jonathanpoulin
Member
Member
Posts: 131
Joined: 2020-12-19, 12:09 UTC
Location: Saint-Marc-des-Carrières, QC Canada
Contact:

Re: Search for directory "NameA" and file "NameB" at same time

Post by *jonathanpoulin »

HolgerK wrote: 2021-01-28, 07:25 UTC <F1> : "When the search string contains a dot, Total Commander will look for the exact name match."

Search for: bin. obj. .user

or (in case .user is meant as all files with extension .user):
Search for: bin. obj. *.user

HTH
Holger
Hi!

Ok good, it works. Thanks. It won't happen in that particular case, but in some case it might not be perfect. Example, one would want to delete all temp\ subdirs but not necessarily files named 'temp', while at the same time searching for whatever files. I know it is probably rare cases!

I was tring searches like, but it didn't work:

Code: Select all

bin\ obj\ *.user
or

Code: Select all

temp\ file.txt
where trailing backslash was to indicates to TC that I am searching for dirs.
Thanks,
Jonathan Poulin
User avatar
HolgerK
Power Member
Power Member
Posts: 5411
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: Search for directory "NameA" and file "NameB" at same time

Post by *HolgerK »

You can install everything (https://www.voidtools.com/) and use the everything integration in TC:

Search for:

Code: Select all

ed: folder:wfn:<obj|bin|temp> | files:*.user

See also viewtopic.php?p=367192#p367192

HTH
Holger
Make our planet great again
Post Reply