Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 2 down vote accepted

Robocopy should be up to the task. The Default copy flags are DAT (data, attributes and timestamp) so that should work. Sorry I'm not on win7 at corporate yet or I'd provide the exact syntax.

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.