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
Search for directory "NameA" and file "NameB" at same time
Moderators: Hacker, petermad, Stefan2, white
- jonathanpoulin
- 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
Thanks,
Jonathan Poulin
Jonathan Poulin
Re: Search for directory "NameA" and file "NameB" at same time
<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
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
- jonathanpoulin
- 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
Hi!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
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
Code: Select all
temp\ file.txt
Thanks,
Jonathan Poulin
Jonathan Poulin
Re: Search for directory "NameA" and file "NameB" at same time
You can install everything (https://www.voidtools.com/) and use the everything integration in TC:
Search for:
See also viewtopic.php?p=367192#p367192
HTH
Holger
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