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

Discuss and share scripts and script files...
Post Reply
kelwin
Posts: 10
Joined: 08 Feb 2012 00:05

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

Post 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

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

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

Post 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?
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

kelwin
Posts: 10
Joined: 08 Feb 2012 00:05

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

Post 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.....

kelwin
Posts: 10
Joined: 08 Feb 2012 00:05

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

Post 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.

Post Reply