Link to home
Start Free TrialLog in
Avatar of Dan Hennings
Dan Hennings

asked on

Modified Date of Folders in Windows Explorer

We are in the midst of a massive folder reorganization. We have found that when we move a folder to a different folder in Windows Explorer, the moved folder's modified date changes to the current date. No sub-folder or file within the moved folder was modified. The only change was moving the folder to a different parent folder.

How can we change that? Here is what we want:

1) When we move a folder, the date of the moved folder does not change.
2) The modified date of a folder is equal to the most recent file within that folder.
Avatar of flubbster
flubbster
Flag of United States of America image

I believe this is a windows thing by design and I know no way of modifying that behavior. When a folder or file is moved, windows updates the Master File Table (MFT) so it knows where it is located. Hence, the new modified date. There are utilities available to change the modified date, but it would have to be done manually I believe. Will investigate a bit more...
ASKER CERTIFIED SOLUTION
Avatar of Joe Winograd
Joe Winograd
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yeah... I thought of robocopy also but the question sounded more like the file is just being moved and not copied via a command line. But, whatever works... lol
Avatar of Dan Hennings
Dan Hennings

ASKER

I am willing to do command line work, and I can train others to do it as well. Thanks for your inpu.
> I am willing to do command line work, and I can train others to do it as well.

Good to hear! Not everyone is so inclined. You're welcome — happy to help.
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
There is definitely enough information to confirm an answer. The author's question is this:
Here is what we want:

1) When we move a folder, the date of the moved folder does not change.
2) The modified date of a folder is equal to the most recent file within that folder.
The author also said this:
I am willing to do command line work, and I can train others to do it as well.
I tested the solution proposed in this post. It meets the author's requirements and works perfectly. That is, (1) the /DCOPY:T option of ROBOCOPY retains the source folder's date on the destination folder and (2) the -DIRNEWEST option of dirdate sets a folder's date to the date of the newest file in the folder. I have confirmed that this is an answer. If anyone cannot get it to work, please let me know and I'll be happy to help you through it. Regards, Joe
Matt,
Thank you for accepting — very much appreciated! Regards, Joe