show only file/folder today?
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 9
- Joined: 2022-04-20, 13:14 UTC
show only file/folder today?
I tried plugins like age but it always shows extraneous folders,
TC's Advanced search parameter "Not older than" and set it to 1 day(s) also invalid
I don't want to find a target in a bunch of irrelevant folders.
Is this possible?
This problem has been bothering me for years and there is no solution.
TC's Advanced search parameter "Not older than" and set it to 1 day(s) also invalid
I don't want to find a target in a bunch of irrelevant folders.
Is this possible?
This problem has been bothering me for years and there is no solution.
Re: show only file/folder today?
Try not older than 0 days.zeronofreya wrote: 2022-07-09, 03:00 UTC TC's Advanced search parameter "Not older than" and set it to 1 day(s) also invalid
-
- Junior Member
- Posts: 9
- Joined: 2022-04-20, 13:14 UTC
Re: show only file/folder today?
It even shows last year's folders,so I think tc itself does not supportwhite wrote: 2022-07-09, 06:30 UTCTry not older than 0 days.zeronofreya wrote: 2022-07-09, 03:00 UTC TC's Advanced search parameter "Not older than" and set it to 1 day(s) also invalid
Re: show only file/folder today?
The following AHK script only shows files from today in the current dir.
[Edited]
If no files from today are found an empty list is shown.
[Edited]
If no files from today are found an empty list is shown.
Code: Select all
FileGetTime, Date, %1%
FormatTime, Date, %Date%, yyyyMMdd
Loop, Files, *.*
SameDateFileList .= Substr(A_LoopFileTimeModified, 1, 8) = Date ? A_LoopFileName . "`n" : ""
If (SameDateFileList) then
{
ClipboardBak = %ClipboardAll%
Clipboard := Substr(SameDateFileList, 1, StrLen(SameDateFileList) - 1)
PostMessage, 1075, 2033, , , ahk_class TTOTAL_CMD
;Menu "SHOW > Only Selected Files" > cm_ShowOnlySelected=2023;Hide files which aren't selected
PostMessage, 1075, 2023, , , ahk_class TTOTAL_CMD
;cm_ClearAllFiles=3304;Unselect all files
PostMessage, 1075, 3304, , , ahk_class TTOTAL_CMD
}
else
{
PostMessage, 1075, 2023, , , ahk_class TTOTAL_CMD
}
Sleep, 1000
Clipboard = %ClipboardBak%
Last edited by Horst.Epp on 2022-07-09, 17:33 UTC, edited 1 time in total.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
Re: show only file/folder today?
TC with integration of tool 'Everything':
Search queries directly in tool 'Everything'
Search queries in Total Commander under using 'Everything'
'Everything': Searching --> Functions
Windows 11 Pro (x64) Version 21H2 (OS build 22000.778)
TC 10.50 x64/x86 | 'Everything' 1.5.0.1315a (x64)
Search queries: TC <=> 'Everything' | Switching from Everything 1.4 to 1.5
Open Everything GUI results with TC LOADLIST - AutoHotkey (.AHK) SCRIPT and GUIDANCE, discussions
Transfer 'Everything' GUI results to Total Commander - STEP-BY-STEP GUIDE, summary
Search queries directly in tool 'Everything'
Code: Select all
<folder:|file:> dc:today dm:today
-OR-
C: <folder:|file:> dm:today dc:today
-OR-
<folder:|file:> dc:today dm:today temp ;to show only folder "Temp"
Code: Select all
ev: <folder:|file:> dc:today dm:today ;Search in ALL folders indexed by 'Everything'.
-OR-
ed: <folder:|file:> dc:today dm:today ;Search from the current directory - directory depth adjustable in Total Commander.
Code: Select all
datecreated:<date> Search for files and folders with the specified date created.
dc:<date>
--------------------------------------------------------------------------------------
datemodified:<date> Search for files and folders with the specified date modified.
dm:<date>
--------------------------------------------------------------------------------------
dateaccessed:<date> Search for files and folders with the specified date accessed.
da:<date>
Windows 11 Pro (x64) Version 21H2 (OS build 22000.778)
TC 10.50 x64/x86 | 'Everything' 1.5.0.1315a (x64)
Search queries: TC <=> 'Everything' | Switching from Everything 1.4 to 1.5
Open Everything GUI results with TC LOADLIST - AutoHotkey (.AHK) SCRIPT and GUIDANCE, discussions
Transfer 'Everything' GUI results to Total Commander - STEP-BY-STEP GUIDE, summary
Re: show only file/folder today?
It seems to work when I try it. Can you give more information? Do you get wrong folders only? Files are OK? Which TC version are you using? Do you use normal search or do you use the search as a filter? Do you use Everything? Are you talking about write date or creation date?zeronofreya wrote: 2022-07-09, 07:10 UTCIt even shows last year's folders...white wrote: 2022-07-09, 06:30 UTCTry not older than 0 days.zeronofreya wrote: 2022-07-09, 03:00 UTC TC's Advanced search parameter "Not older than" and set it to 1 day(s) also invalid
It is supported:
ghisler(Author) wrote: 2016-07-15, 16:50 UTC 1. When the unit is "days" or longer, TC assumes a corresponding time of 00:00. So for an age of 0 days, everything until the previous midnight is found.
Re: show only file/folder today?
Not older than 0 days works perfect here.
It shows files and dirs from today.
It shows files and dirs from today.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
Re: show only file/folder today?
Searching for not older than 1 or 0 days works for a Search and shows only the folders that comply in the search result or in feed-to-listbox, but if I save that search as for excampe "notolderthan1day" and use that search ">notolderthan1day" as a file mask (Ctrl+F12) - TC only applies the mask to the files, not to tha folders. - And I think that is what zeronofreya talks about.
It is inconsistant since using a saved search like ">notolderthan1day" in "Define colors by file type" and in "Expand selection" (Num+ or Shift+Num+) does work on folders as well as files.
It is inconsistant since using a saved search like ">notolderthan1day" in "Define colors by file type" and in "Expand selection" (Num+ or Shift+Num+) does work on folders as well as files.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
show only file/folder today? - walkaround
It can be accomplished this way:
Put this in the [Searches] section of your wincmd.ini file:
Put this command in your usercmd.ini file:
Make this button:
Put this in the [Searches] section of your wincmd.ini file:
Code: Select all
notolderthan1day_SearchFor=
notolderthan1day_SearchIn=
notolderthan1day_SearchText=
notolderthan1day_SearchFlags=0|002002010021|||1|1|||||0000|||
Code: Select all
[em_marknotolderthan1day]
cmd=SELECTFILESB >notolderthan1day
Code: Select all
TOTALCMD#BAR#DATA
em_marknotolderthan1day,cm_ShowOnlySelected,cm_ClearAll
WCMICONS.DLL,24
Show only files and folders not older than 1 day
The only problem with this is that it uses TC's "Show only selected files", so the file panel is reset to normal view as soon as TC looses and regain focus.To make the button:
1. Mark the text in the box here above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctrl+C).
3. Right click on TC's buttonbar and choose "Paste".
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: show only file/folder today?
Related:petermad wrote: 2022-07-09, 12:13 UTC ...but if I save that search as for excampe "notolderthan1day" and use that search ">notolderthan1day" as a file mask (Ctrl+F12) - TC only applies the mask to the files, not to tha folders. - And I think that is what zeronofreya talks about.
viewtopic.php?p=411166#p411166
-
- Junior Member
- Posts: 9
- Joined: 2022-04-20, 13:14 UTC
Re: show only file/folder today? - walkaround
Thanks, this works!petermad wrote: 2022-07-09, 12:46 UTC It can be accomplished this way:
Put this in the [Searches] section of your wincmd.ini file:Put this command in your usercmd.ini file:Code: Select all
notolderthan1day_SearchFor= notolderthan1day_SearchIn= notolderthan1day_SearchText= notolderthan1day_SearchFlags=0|002002010021|||1|1|||||0000|||
Make this button:Code: Select all
[em_marknotolderthan1day] cmd=SELECTFILESB >notolderthan1day
Code: Select all
TOTALCMD#BAR#DATA em_marknotolderthan1day,cm_ShowOnlySelected,cm_ClearAll WCMICONS.DLL,24 Show only files and folders not older than 1 day
The only problem with this is that it uses TC's "Show only selected files", so the file panel is reset to normal view as soon as TC looses and regain focus.To make the button:
1. Mark the text in the box here above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctrl+C).
3. Right click on TC's buttonbar and choose "Paste".