Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When you're copying a folder with subfolders in Windows 7 file explorer (and possibly in earlier versions of Windows) all subfolders get their "date created" and "date modified" changed to the current time and date. (Files are unaffected.)

This is annoying because I use these values for sorting and I would like them (or at the very least one of them) to be preserved when copying folders. Any suggestions?

share|improve this question
up vote 4 down vote accepted

Robocopy should be up to the task. The Default copy flags are DAT (data, attributes and timestamp) so that should work.

As noted in the comments, the OP used the specific flags of

robocopy /E /DCOPY:T
share|improve this answer
robocopy /E /DCOPY:T does what I want. I will still keep this question open for a while in case there are other suggestions (including possibly ones that will make the Windows file explorer do this.) – nitro2k01 Nov 17 '11 at 16:15
Note to self: I will need to test how robocopy works with copy actions that require UAC authorization. – nitro2k01 Nov 17 '11 at 16:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .