Timestamp preservation when moving folders/files?

wickedDUDE

New member
Jun 25, 2006
1,054
12
0
Hello,

I want to transfer files from my old PC to my new one, but the only annoyance is that when I do this, all of the timestamps change to today's date and time, and not the original date/time on my original PC.

Any suggestions for how to keep everything preserved as it was on the original PC?

Thx.
 


Assuming you're on Windows it's -

robocopy "c:\source\" "x:\destination" /e /dcopy:T

You can find more info here on Microsoft Technet -

Robocopy

The important parameter is "/copy:" but it's default is "DAT" which includes timestamps. I also added "/dcopy:T" to the command above so directory timestamps will be copied aswell.
 
Assuming you're on Windows it's -

robocopy "c:\source\" "x:\destination" /e /dcopy:T

You can find more info here on Microsoft Technet -

Robocopy

The important parameter is "/copy:" but it's default is "DAT" which includes timestamps. I also added "/dcopy:T" to the command above so directory timestamps will be copied aswell.


Thanks. Is there a difference between:

robocopy "c:\test" "d:\test" /e /dcopy:T

and

robocopy "c:\test" "d:\test" /e /copyall /dcopy:T

The page below uses the 2nd command:
How to copy or move files and folders whilst maintaining their original time date stamp.