How to filter folders and files on name and date ?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
keshi0
Junior Member
Junior Member
Posts: 6
Joined: 2024-05-18, 03:03 UTC

How to filter folders and files on name and date ?

Post by *keshi0 »

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!
Fla$her
Power Member
Power Member
Posts: 2390
Joined: 2020-01-18, 04:03 UTC

Re: How to filter folders and files on name and date ?

Post by *Fla$her »

Folders cannot be filtered through the search template, only by a mask with a backslash at the end.
Overquoting is evil! 👎
keshi0
Junior Member
Junior Member
Posts: 6
Joined: 2024-05-18, 03:03 UTC

Re: How to filter folders and files on name and date ?

Post by *keshi0 »

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.
Well.....
Thank you for replying.
User avatar
tuska
Power Member
Power Member
Posts: 3790
Joined: 2007-05-21, 12:17 UTC

Re: How to filter folders and files on name and date ?

Post by *tuska »

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
Fla$her
Power Member
Power Member
Posts: 2390
Joined: 2020-01-18, 04:03 UTC

Re: How to filter folders and files on name and date ?

Post by *Fla$her »

Maybe that will help.
Filtering is needed to make navigation easier, search results are not suitable for this.
Overquoting is evil! 👎
User avatar
tuska
Power Member
Power Member
Posts: 3790
Joined: 2007-05-21, 12:17 UTC

Re: How to filter folders and files on name and date ?

Post by *tuska »

Fla$her wrote: 2024-05-18, 13:15 UTC
Maybe that will help.
Filtering is needed to make navigation easier, search results are not suitable for this.
The search result solution should only be a substitute solution if the desired filtering cannot be achieved
-> "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
Fla$her
Power Member
Power Member
Posts: 2390
Joined: 2020-01-18, 04:03 UTC

Re: How to filter folders and files on name and date ?

Post by *Fla$her »

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
I wrote about making navigation easier. Using Ctrl+Left/Right is more like a complication.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14914
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: How to filter folders and files on name and date ?

Post by *petermad »

You can perform a search in Total Commander using the 'Everything' tool
Without 'Everything' the same can be done with TC's build-in plugin:

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.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
keshi0
Junior Member
Junior Member
Posts: 6
Joined: 2024-05-18, 03:03 UTC

Re: How to filter folders and files on name and date ?

Post by *keshi0 »

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
Thanks tuska! As Fla$her said, Filtering is needed to make navigation easier. But I learn the expression for searching dates from you.
I prefer filtering when navigating, as it persists even when changing directories.

Thank you tuska.
keshi0
Junior Member
Junior Member
Posts: 6
Joined: 2024-05-18, 03:03 UTC

Re: How to filter folders and files on name and date ?

Post by *keshi0 »

Fla$her wrote: 2024-05-18, 13:15 UTC
Maybe that will help.
Filtering is needed to make navigation easier, search results are not suitable for this.
Yes I think so, too! Wishing folders can be filtered in the future version.
keshi0
Junior Member
Junior Member
Posts: 6
Joined: 2024-05-18, 03:03 UTC

Re: How to filter folders and files on name and date ?

Post by *keshi0 »

petermad wrote: 2024-05-18, 17:23 UTC
You can perform a search in Total Commander using the 'Everything' tool
Without 'Everything' the same can be done with TC's build-in plugin:

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)
Yes :)
Fla$her
Power Member
Power Member
Posts: 2390
Joined: 2020-01-18, 04:03 UTC

Re: How to filter folders and files on name and date ?

Post by *Fla$her »

keshi0 wrote: 2024-05-26, 14:27 UTC Wishing folders can be filtered in the future version.
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! 👎
keshi0
Junior Member
Junior Member
Posts: 6
Joined: 2024-05-18, 03:03 UTC

Re: How to filter folders and files on name and date ?

Post by *keshi0 »

Fla$her wrote: 2024-05-26, 16:39 UTC
keshi0 wrote: 2024-05-26, 14:27 UTC Wishing folders can be filtered in the future version.
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. 😄 🤐
hahahaha...Mr author,Is he right?
User avatar
petermad
Power Member
Power Member
Posts: 14914
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: How to filter folders and files on name and date ?

Post by *petermad »

the author would have done it a hundred years ago
Implying that Christian is old, are you? ;-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2390
Joined: 2020-01-18, 04:03 UTC

Re: How to filter folders and files on name and date ?

Post by *Fla$her »

Implying that Christian is old, are you?
Not at all. The gods don't know age! :wink:
Overquoting is evil! 👎
Post Reply