Page 1 of 1

Need a script to "correct" folder properties -modified date

Posted: 29 Feb 2012 07:45
by kelwin
Following on from the help I got to previous request, http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=7621

I now noticed that due to cleaning up the 4000 odd folders, that the modified date for projects done say 3 years ago, have a recent date due to changes made (eg renamed spelling mistake in folder name)

While it is possible to modify individual folder properties with tools like SKTimeStamp, it would take too long to be worthwhile on 4000+ folders.

So I'm wondering if any scripting guru could write another script to look at the time stamp of files in the folder and change the folder datestamp to match.

It wouldn't matter if it was the first file, last file, or latest/newest file date stamp.


It may not be something that XYplorer script could handle....?


Many thanks in advance



Kelwin

Re: Need a script to "correct" folder properties -modified d

Posted: 29 Feb 2012 08:13
by j_c_hallgren
kelwin wrote:I now noticed that due to cleaning up the 4000 odd folders, that the modified date for projects done say 3 years ago, have a recent date due to changes made (eg renamed spelling mistake in folder name)
Renaming a file/folder name doesn't affect modified date AFAIK so am a bit confused as to what happened...I also changed attibutes of folder with no effect on modified date...matter of fact, I'm not even sure what would change modified dates of a folder.
So I'm wondering if any scripting guru could write another script to look at the time stamp of files in the folder and change the folder datestamp to match.
I also don't know of any folder where all the files in it have the same date (ok, it might possibly happen but it's really unusual AFAIK) so what would be the source for the script?

Re: Need a script to "correct" folder properties -modified d

Posted: 01 Mar 2012 04:12
by kelwin
I'm not sure why the folder stampdates have changed either, but must be do do with all the moving around (even between drives) that causes it.....

Re: Need a script to "correct" folder properties -modified d

Posted: 01 Mar 2012 04:16
by kelwin
If the script could look up a file with the extension of .est that would suit me fine.

Whilst there could be more than one .est, if it just referred to the first one it found that would be good enough for me.