Dynamically/Automatically change folder date to that of most recent file

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
pgpg
Junior Member
Junior Member
Posts: 30
Joined: 2025-01-04, 19:11 UTC

Dynamically/Automatically change folder date to that of most recent file

Post by *pgpg »

I am using [wcx]setfolderdate_1.3.0.0 to update my folder date to that of the last modified file, but it seems that this plugin has to be run each time to update folder dates. Is there a way of having the folder to automatically assume the date of the last modified file?
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: Dynamically/Automatically change folder date to that of most recent file

Post by *Fla$her »

It's been discussed.
Overquoting is evil! 👎
pgpg
Junior Member
Junior Member
Posts: 30
Joined: 2025-01-04, 19:11 UTC

Re: Dynamically/Automatically change folder date to that of most recent file

Post by *pgpg »

2 Fla$her.

Thanks. I have gone through it. But there are so many links and suggestions that I don't know what works and what does not. There is a suggestion to use Everything's advanced settings, which I did but the change is not reflected in TC. Can you please summarize the answer here (i am sure this will be useful for many other users)? Thx.
User avatar
beb
Power Member
Power Member
Posts: 579
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: Dynamically/Automatically change folder date to that of most recent file

Post by *beb »

2pgpg
My PowerShell script to redate folder(s) regarding its latest content (tiny script itself, TC user command, TC user button, and usage examples included):
https://ghisler.ch/board/viewtopic.php?t=84556
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
pgpg
Junior Member
Junior Member
Posts: 30
Joined: 2025-01-04, 19:11 UTC

Re: Dynamically/Automatically change folder date to that of most recent file

Post by *pgpg »

beb wrote: 2025-01-07, 18:40 UTC 2pgpg
My PowerShell script to redate folder(s) regarding its latest content (tiny script itself, TC user command, TC user button, and usage examples included):
https://ghisler.ch/board/viewtopic.php?t=84556
Thank you for the pointer. However, when I tried the user button method, I get 'Function not implemented! em-redate_forlders_by_content'
User avatar
beb
Power Member
Power Member
Posts: 579
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: Dynamically/Automatically change folder date to that of most recent file

Post by *beb »

2pgpg
You need to put a user command "em_redate_folders_by_content" in your 'usercmd.ini' as described there.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: Dynamically/Automatically change folder date to that of most recent file

Post by *Fla$her »

pgpg wrote: 2025-01-07, 15:45 UTC I have gone through it. But there are so many links and1 suggestions that I don't know what works and what does not.
In fact, nothing is working in automatic mode at the moment. All the tools listed relate to the manual mode.
Even the author of Everything didn't want to implement such dynamics.

There is some chance that this feature will appear in Autorun. I can't say when. The search function is still under consideration in Todo.
Overquoting is evil! 👎
pgpg
Junior Member
Junior Member
Posts: 30
Joined: 2025-01-04, 19:11 UTC

Re: Dynamically/Automatically change folder date to that of most recent file

Post by *pgpg »

2beb&FlaSher

Thanks for the info. At least I now know there is nothing that works dynamically.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6951
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Dynamically/Automatically change folder date to that of most recent file

Post by *Horst.Epp »

pgpg wrote: 2025-01-07, 14:17 UTC I am using [wcx]setfolderdate_1.3.0.0 to update my folder date to that of the last modified file, but it seems that this plugin has to be run each time to update folder dates. Is there a way of having the folder to automatically assume the date of the last modified file?
The Windows file system only updates the Dir dates when its direct content is changed, not any level deeper.
So there will never be a safe automatic way.

I use the Nirsoft tool Folder Time Update.
It has a required command line options to run it,
using a scheduled task as often as desired.
https://www.nirsoft.net/utils/folder_time_update.html
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Post Reply