How to filter folders and files on name and date ?
Moderators: Hacker, petermad, Stefan2, white
How to filter folders and files on name and date ?
I want to filter out files and folders whose names start with '24' or have a modified date later than December 31, 2023, and hide all other files and folders that do not meet the above rules. How can I define the rule in the show command?
I've tried many times, and I can filter out the files that meet the requirements, but the folders that do not meet the requirements are still displayed, instead of being filtered out.
Thanks a lot!
I've tried many times, and I can filter out the files that meet the requirements, but the folders that do not meet the requirements are still displayed, instead of being filtered out.
Thanks a lot!
Re: How to filter folders and files on name and date ?
Folders cannot be filtered through the search template, only by a mask with a backslash at the end.
Overquoting is evil! 👎
Re: How to filter folders and files on name and date ?
Well.....Fla$her wrote: 2024-05-18, 08:27 UTC Folders cannot be filtered through the search template, only by a mask with a backslash at the end.
Thank you for replying.
Re: How to filter folders and files on name and date ?
You can perform a search in Total Commander using the 'Everything' tool to obtain these folders and files in real time:
- Search in separate process... Alt+Shift+F7
- Find Files (separate) - Search for: ev:^24 dm:>31.12.2023 ... OR ... ev:start-with:24 dm:>31.12.2023
- After Shift+click on the "Feed to listbox" button, the search result is displayed on the "Search result:" tab
Maybe that will help.
Windows 11 Pro (x64) Version 23H2 (Build 22631.3593) | TC 11.03 x64/x86
'Everything' 1.5.0.1376a (x64) portable on systemdrive C: | ^:, start-with:
Search queries: Total Commander <=> 'Everything' <= Windows Search
Troubleshooting | Troubleshooting Information 1.5
- Search in separate process... Alt+Shift+F7
- Find Files (separate) - Search for: ev:^24 dm:>31.12.2023 ... OR ... ev:start-with:24 dm:>31.12.2023
- After Shift+click on the "Feed to listbox" button, the search result is displayed on the "Search result:" tab
Maybe that will help.
Windows 11 Pro (x64) Version 23H2 (Build 22631.3593) | TC 11.03 x64/x86
'Everything' 1.5.0.1376a (x64) portable on systemdrive C: | ^:, start-with:
Search queries: Total Commander <=> 'Everything' <= Windows Search
Troubleshooting | Troubleshooting Information 1.5
Re: How to filter folders and files on name and date ?
Filtering is needed to make navigation easier, search results are not suitable for this.Maybe that will help.
Overquoting is evil! 👎
Re: How to filter folders and files on name and date ?
The search result solution should only be a substitute solution if the desired filtering cannot be achievedFla$her wrote: 2024-05-18, 13:15 UTCFiltering is needed to make navigation easier, search results are not suitable for this.Maybe that will help.
-> "Maybe that will help".
Navigation can also be performed in the search results.
If the search result is displayed in a TC window and you use the Ctrl+left or Ctrl+right key
then for
- a folder: The contents of this folder are displayed in the opposite TC window
- a file: The folder is displayed in the opposite TC window and the cursor is positioned on the file
Re: How to filter folders and files on name and date ?
I wrote about making navigation easier. Using Ctrl+Left/Right is more like a complication.tuska wrote: 2024-05-18, 15:31 UTC Navigation can also be performed in the search results.
If the search result is displayed in a TC window and you use the Ctrl+left or Ctrl+right key
Overquoting is evil! 👎
Re: How to filter folders and files on name and date ?
Without 'Everything' the same can be done with TC's build-in plugin:You can perform a search in Total Commander using the 'Everything' tool
Find Files (Alt+F7) -> Plugins (Tab):
Combine with: OR (any match)
Plugin: TC, Property: name, OP: RegEx, Value: ^24
Plugin: TC, Property: writedate. OP: >, Value: 31-12-2023
The date might have to be adapted to the Systems date format.
The Search can be saved, and the saved search name can be used as a file mask (Ctrl+F12), but it will not work on folder names, only on files (as Fla$her has already pointed out)
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
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
Re: How to filter folders and files on name and date ?
Thanks tuska! As Fla$her said, Filtering is needed to make navigation easier. But I learn the expression for searching dates from you.tuska wrote: 2024-05-18, 12:39 UTC You can perform a search in Total Commander using the 'Everything' tool to obtain these folders and files in real time:
- Search in separate process... Alt+Shift+F7
- Find Files (separate) - Search for: ev:^24 dm:>31.12.2023 ... OR ... ev:start-with:24 dm:>31.12.2023
- After Shift+click on the "Feed to listbox" button, the search result is displayed on the "Search result:" tab
Maybe that will help.
Windows 11 Pro (x64) Version 23H2 (Build 22631.3593) | TC 11.03 x64/x86
'Everything' 1.5.0.1376a (x64) portable on systemdrive C: | ^:, start-with:
Search queries: Total Commander <=> 'Everything' <= Windows Search
Troubleshooting | Troubleshooting Information 1.5
I prefer filtering when navigating, as it persists even when changing directories.
Thank you tuska.
Re: How to filter folders and files on name and date ?
Yes I think so, too! Wishing folders can be filtered in the future version.Fla$her wrote: 2024-05-18, 13:15 UTCFiltering is needed to make navigation easier, search results are not suitable for this.Maybe that will help.
Re: How to filter folders and files on name and date ?
Yespetermad wrote: 2024-05-18, 17:23 UTCWithout 'Everything' the same can be done with TC's build-in plugin:You can perform a search in Total Commander using the 'Everything' tool
Find Files (Alt+F7) -> Plugins (Tab):
Combine with: OR (any match)
Plugin: TC, Property: name, OP: RegEx, Value: ^24
Plugin: TC, Property: writedate. OP: >, Value: 31-12-2023
The date might have to be adapted to the Systems date format.
The Search can be saved, and the saved search name can be used as a file mask (Ctrl+F12), but it will not work on folder names, only on files (as Fla$her has already pointed out)

Re: How to filter folders and files on name and date ?
It seems to me that this is such an obvious thing that, if desired, the author would have done it a hundred years ago. No, a thousand years ago, sorry.
Overquoting is evil! 👎
Re: How to filter folders and files on name and date ?
hahahaha...Mr author,Is he right?
Re: How to filter folders and files on name and date ?
Implying that Christian is old, are you?the author would have done it a hundred years ago

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
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
Re: How to filter folders and files on name and date ?
Not at all. The gods don't know age!Implying that Christian is old, are you?

Overquoting is evil! 👎