<UTIL>Redate whole dir-trees folders to youngest file

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Stefan2, white, sheep, Hacker

eitang
Senior Member
Senior Member
Posts: 246
Joined: 2003-05-19, 20:08 UTC
Location: France
Contact:

<UTIL>Redate whole dir-trees folders to youngest file

Post by *eitang » 2012-12-16, 19:53 UTC

I wrote the following after discussion with dear Ch. Ghisler, back in 2004...He didn't want to add this (Similar to my CopyToTabs).
You're welcome to it.

Dir Dates
---------
English: [ Re-Dates folders tree according to youngest file inside ]

This program (Bilingual, French and English), will re-date a whole directory tree starting at the directory you selected. Each directory will be timestamped to the same time and date of the youngest file inside it. You can "Drag && Drop" any file or Directory onto the program's icon to set the starting directory
Works with Windows UI, OR command line parameters, file OR folder.

Portable: A Singlr EXE + a small DLL. size: 239k. Writes settings in app's folder. Nothing else.

Written February 10th, 2004. Last update December 16th, 2012.
--------------------------------------------------------------------------------
French: [ Redate une arborescence de répertoires selon les plus jeunes fichiers inclus ]

Ce programme (Bilingue, Français et Anglais), re-date toute une arborescence de dossiers, demarrant au dossier de votre choix.Chaque dossier sera date a la meme date-heure du fichier le plus jeune qui y reside. Vous pouvez Glisser un fichier/repertoire sur l'icone du programme pour fixer le repertoire de depart.
Fonctionne avec l'interface Windows OU avec ligne de commande.

C'est une application portable: 1 executable, une DLL taille totale 239k. Rien n'est écrit ailleurs que dans le répertoire de l'application.

Ecrit Le 10 Fevrier 2004. Dernière M.à.j. le 16 Déc 2012.
------------------------------------------------------------------------------------

Download / télécharger DirDate
Best Wishes,

Eitan Gilboa (License #: 17011)
URL: http://perso.wanadoo.fr/eitang

iana
Senior Member
Senior Member
Posts: 342
Joined: 2010-07-27, 22:00 UTC

Post by *iana » 2012-12-16, 22:24 UTC

How does this compare to SetFolderDate?
As far as I can tell although SetFolderDate is an autoit script it's much more feature rich, as it can scan inside archives and some pe files and set the modification date on archives and folders, it can recurse sub-folders etc and it's open source?
What do you mean by youngest?
If I have a file from 2003 and one from 2004, will it set the date to 2004 or 2003? Do you mean the newest like 2004 in the example?

eitang
Senior Member
Senior Member
Posts: 246
Joined: 2003-05-19, 20:08 UTC
Location: France
Contact:

Post by *eitang » 2012-12-17, 09:57 UTC

>> How does this compare to SetFolderDate?

I don't know.

>> SetFolderDate is an autoit script it's much more feature rich,

My program is NOT dependent on any other soft, not even on TC. It is VERY small, VERY fast, accepts drag&drop (folders OR files) as well as UI.

>> as it can scan inside archives

My program does not. I take care of folder dates BEFORE compressing...

>> it can recurse sub-folders etc

So does my program. Why don't you test it instead of worrying ???

>> What do you mean by youngest?
>> If I have a file from 2003 and one from 2004,

2004 is younger than 2003 so it will be 2004.
Best Wishes,

Eitan Gilboa (License #: 17011)
URL: http://perso.wanadoo.fr/eitang

mikedepetris
Junior Member
Junior Member
Posts: 54
Joined: 2006-11-07, 16:36 UTC
Location: Trieste, Italy
Contact:

Re: <UTIL>Redate whole dir-trees folders to youngest file

Post by *mikedepetris » 2019-07-02, 08:53 UTC

The download link is broken, can anybody help?
Is it possible to filter some files in calculating the newest file date? I usually exclude .* *.db .svn/*.*

User avatar
Gral
Power Member
Power Member
Posts: 715
Joined: 2005-01-26, 15:12 UTC

Re: <UTIL>Redate whole dir-trees folders to youngest file

Post by *Gral » 2019-07-02, 16:17 UTC


User avatar
Horst.Epp
Power Member
Power Member
Posts: 3394
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: <UTIL>Redate whole dir-trees folders to youngest file

Post by *Horst.Epp » 2019-07-02, 17:40 UTC

The best for this purpose is for me FolderTimeUpdate from Nirsoft
https://www.nirsoft.net/utils/folder_time_update.html
Windows 10 Home x64 May 2019 Update, Version 1903 (OS Build 18362.329)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.22a x64 and x86, Everything 1.4.1.949 (x64)

User avatar
tbeu
Power Member
Power Member
Posts: 1266
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: <UTIL>Redate whole dir-trees folders to youngest file

Post by *tbeu » 2019-07-03, 09:00 UTC

You can also use the SetFolderDate packer plugin, which respects the ignored files when setting the folder date recursively.

@C++17 developers: I'd like to know why setting the last write time of a directory using the C++17 method std::filesystem::last_write_time always throws in VS2017? See wcx_setfolderdate.cpp for the corresponding lines of code. (It works for regular files though.)
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more

mikedepetris
Junior Member
Junior Member
Posts: 54
Joined: 2006-11-07, 16:36 UTC
Location: Trieste, Italy
Contact:

Re: <UTIL>Redate whole dir-trees folders to youngest file

Post by *mikedepetris » 2019-07-03, 14:53 UTC

Gral wrote:
2019-07-02, 16:17 UTC
Get it here
https://1fichier.com/?6ea5rscwplq4hp79xe5e
"1fichier.com unexpectedly closed the connection."

mikedepetris
Junior Member
Junior Member
Posts: 54
Joined: 2006-11-07, 16:36 UTC
Location: Trieste, Italy
Contact:

Re: <UTIL>Redate whole dir-trees folders to youngest file

Post by *mikedepetris » 2019-07-03, 14:53 UTC

Horst.Epp wrote:
2019-07-02, 17:40 UTC
The best for this purpose is for me FolderTimeUpdate from Nirsoft
https://www.nirsoft.net/utils/folder_time_update.html
Can't set an ignore list like I use in MultiCommander: .* *.db .svn/*.*

mikedepetris
Junior Member
Junior Member
Posts: 54
Joined: 2006-11-07, 16:36 UTC
Location: Trieste, Italy
Contact:

Re: <UTIL>Redate whole dir-trees folders to youngest file

Post by *mikedepetris » 2019-07-03, 14:55 UTC

tbeu wrote:
2019-07-03, 09:00 UTC
You can also use the SetFolderDate packer plugin, which respects the ignored files when setting the folder date recursively.

@C++17 developers: I'd like to know why setting the last write time of a directory using the C++17 method std::filesystem::last_write_time always throws in VS2017? See wcx_setfolderdate.cpp for the corresponding lines of code. (It works for regular files though.)
I was using SetFolderDate 1.5
Which version is this? The page reports:
SetFolderDate 1.0.0.1
Version 2.0.0.1
- first public release

A bit confusing.

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3394
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: <UTIL>Redate whole dir-trees folders to youngest file

Post by *Horst.Epp » 2019-07-03, 15:35 UTC

mikedepetris wrote:
2019-07-03, 14:53 UTC
Horst.Epp wrote:
2019-07-02, 17:40 UTC
The best for this purpose is for me FolderTimeUpdate from Nirsoft
https://www.nirsoft.net/utils/folder_time_update.html
Can't set an ignore list like I use in MultiCommander: .* *.db .svn/*.*
You can !
There is a field named:
Skip files that match the following wildcards: (comma delimited list)
Windows 10 Home x64 May 2019 Update, Version 1903 (OS Build 18362.329)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.22a x64 and x86, Everything 1.4.1.949 (x64)

User avatar
tbeu
Power Member
Power Member
Posts: 1266
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: <UTIL>Redate whole dir-trees folders to youngest file

Post by *tbeu » 2019-07-05, 19:37 UTC

mikedepetris wrote:
2019-07-03, 14:55 UTC
Which version is this? The page reports:
SetFolderDate 1.0.0.1
Version 2.0.0.1
- first public release

A bit confusing.
Fixed bx SetFolderDate 1.0.0.2. Note that this new packer plugin is independent of the utility tool SetFolderDate 1.5.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more

mikedepetris
Junior Member
Junior Member
Posts: 54
Joined: 2006-11-07, 16:36 UTC
Location: Trieste, Italy
Contact:

Re: <UTIL>Redate whole dir-trees folders to youngest file

Post by *mikedepetris » 2019-07-05, 20:35 UTC

Horst.Epp wrote:
2019-07-03, 15:35 UTC
mikedepetris wrote:
2019-07-03, 14:53 UTC
Horst.Epp wrote:
2019-07-02, 17:40 UTC
The best for this purpose is for me FolderTimeUpdate from Nirsoft
https://www.nirsoft.net/utils/folder_time_update.html
Can't set an ignore list like I use in MultiCommander: .* *.db .svn/*.*
You can !
There is a field named:
Skip files that match the following wildcards: (comma delimited list)
ah ok thanks, it's just the screenshot that needs to be updated

mikedepetris
Junior Member
Junior Member
Posts: 54
Joined: 2006-11-07, 16:36 UTC
Location: Trieste, Italy
Contact:

Re: <UTIL>Redate whole dir-trees folders to youngest file

Post by *mikedepetris » 2019-07-05, 20:37 UTC

tbeu wrote:
2019-07-05, 19:37 UTC
mikedepetris wrote:
2019-07-03, 14:55 UTC
Which version is this? The page reports:
SetFolderDate 1.0.0.1
Version 2.0.0.1
- first public release

A bit confusing.
Fixed bx SetFolderDate 1.0.0.2. Note that this new packer plugin is independent of the utility tool SetFolderDate 1.5.
Tested it, it's very fast but I am getting some errors if I select dirs containing many files, I then tried doing it for subdir ranges and then it worked for all the parent... not clear what is going on, it says "error writing date" or something similar.

User avatar
tbeu
Power Member
Power Member
Posts: 1266
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: <UTIL>Redate whole dir-trees folders to youngest file

Post by *tbeu » 2019-07-06, 20:35 UTC

Thanks for testing. Would be very helpful if you could reproduce. If there is an extra message box displayed, then the path ofthe appropriate file is display in the title bar.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more

Post Reply