Using Robocopy command to preserve Timestamps of Images?

Sagar_20

Distinguished
BANNED
Its a common problem these days. Whenever you move you data say pictures, from Phone Memory to a Micro SD Card, you lose the order, and hence you see pictures in Random Order. I guess this is because this way the pictures are copied in accordance with their Name, and NOT Date. I am going through the same problem right now but recently i came across a thread that says to use the robocopy command to Copy contents to the MIcro SD card while preserving the Timestamps.

This following is the Command
ROBOCOPY c:\src d:\dest /MIR /COPY:DAT /DCOPY:T

Can somebody explain to me how it works and what the source and destination Location are in this command? Moreover, i'd like to Move the Data rather than copy, what do i do in that case?

Or is there any other method to restore the images Copied/Moved to External Storage to their Original timestamps? If there is some freeware that can do this for me, please let me know

Thanks
 
Solution

It copies contents of C:\src to d:\dest

  • Java:
    /MIR
    - copies directories (including empty ones) and deletes destination files/folders not present at source;

    Java:
    /COPY:DAT
    - copies data, attributes, timestamps;

    Java:
    /DCOPY:T
    - copies timestamps for directories;
All the info is obtainable from robocopy /?

USAFRet

Titan
Moderator
Source = where it is coming from. The phone
Destination = where it is going. The SD card.

Copy....this almost certainly does NOT preserve any file date/time stamps.
You are creating a whole new file, with a Date/Time of 'now'.

Move, however, is a risky function. If it fails during the process, your files may be gone or corrupted.

But...the Date/Time of the "file" is not really a good indicator.

What does count much more is the EXIF info, created and contained in the image when it was actually taken.
EXIF is metadata contained in the actual file, not the system file system.
It stays static unless someone purposely edits it, or you upload to some service that actively strips it off (Facebook).
 

It copies contents of C:\src to d:\dest

  • Java:
    /MIR
    - copies directories (including empty ones) and deletes destination files/folders not present at source;

    Java:
    /COPY:DAT
    - copies data, attributes, timestamps;

    Java:
    /DCOPY:T
    - copies timestamps for directories;
All the info is obtainable from robocopy /?
 
Solution