Clone "Date modified" values without recopying files #

Problem: C:\A\ and C:\B\ contain the same files and folders, but the timestamps in C:\B\ are incorrect.

Solution: Mirror the file and folder timestamp values from C:\A\ to the same files and folders in C:\B\ (without having to recopy the files) via robocopy:

C:\>robocopy C:\A\ C:\B\ /E /DCOPY:T /COPY:T
...
               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         3         0         3         0         0         0
   Files :        14        14         0         0         0         0
   Bytes :   3.339 g   3.339 g         0         0         0         0
   Times :   0:00:00   0:00:00                       0:00:00   0:00:00


   Speed :           239063077333 Bytes/sec.
...

robocopy's log is incorrect; no directories were skipped (all their timestamps were updated), no files were copied (only their timestamp data was), and the hardware wasn't quite up to 239GB/sec.

/windows | Jan 16, 2019


Subscribe or visit the archives.