show only file/folder today?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
zeronofreya
Junior Member
Junior Member
Posts: 9
Joined: 2022-04-20, 13:14 UTC

show only file/folder today?

Post by *zeronofreya »

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.
User avatar
white
Power Member
Power Member
Posts: 5986
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: show only file/folder today?

Post by *white »

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
Try not older than 0 days.
zeronofreya
Junior Member
Junior Member
Posts: 9
Joined: 2022-04-20, 13:14 UTC

Re: show only file/folder today?

Post by *zeronofreya »

white wrote: 2022-07-09, 06:30 UTC
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
Try not older than 0 days.
It even shows last year's folders,so I think tc itself does not support
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: show only file/folder today?

Post by *Horst.Epp »

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.

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
User avatar
tuska
Power Member
Power Member
Posts: 4113
Joined: 2007-05-21, 12:17 UTC

Re: show only file/folder today?

Post by *tuska »

TC with integration of tool 'Everything':

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"
Search queries in Total Commander under using 'Everything'

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.
'Everything': Searching --> Functions

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
User avatar
white
Power Member
Power Member
Posts: 5986
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: show only file/folder today?

Post by *white »

zeronofreya wrote: 2022-07-09, 07:10 UTC
white wrote: 2022-07-09, 06:30 UTC
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
Try not older than 0 days.
It even shows last year's folders...
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 UTC ...so I think tc itself does not support
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.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: show only file/folder today?

Post by *Horst.Epp »

Not older than 0 days works perfect here.
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
User avatar
petermad
Power Member
Power Member
Posts: 16116
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: show only file/folder today?

Post by *petermad »

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.
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
User avatar
petermad
Power Member
Power Member
Posts: 16116
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

show only file/folder today? - walkaround

Post by *petermad »

It can be accomplished this way:

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|||
Put this command in your usercmd.ini file:

Code: Select all

[em_marknotolderthan1day]
cmd=SELECTFILESB >notolderthan1day
Make this button:

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
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".
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.
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
User avatar
white
Power Member
Power Member
Posts: 5986
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: show only file/folder today?

Post by *white »

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.
Related:
viewtopic.php?p=411166#p411166
zeronofreya
Junior Member
Junior Member
Posts: 9
Joined: 2022-04-20, 13:14 UTC

Re: show only file/folder today? - walkaround

Post by *zeronofreya »

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:

Code: Select all

notolderthan1day_SearchFor=
notolderthan1day_SearchIn=
notolderthan1day_SearchText=
notolderthan1day_SearchFlags=0|002002010021|||1|1|||||0000|||
Put this command in your usercmd.ini file:

Code: Select all

[em_marknotolderthan1day]
cmd=SELECTFILESB >notolderthan1day
Make this button:

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
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".
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.
Thanks, this works!
Post Reply