Preservation of "Date Created" property for mp4 files when copying


  1. Posts : 43
    Windows 10 Pro
       #1

    Preservation of "Date Created" property for mp4 files when copying


    It seems that copying some video files ( at least mp4 ), the "Date Created" property is not reliably preserved, especially to and from USB drives. About 10% of them would have the copy time time stamp instead of the original "Date Created" time stamp on the destination file, and it appears, that larger files are more susceptible. And it is not file dependant, recopying the same file, would yield different results.

    The Encoding time stamp seems to be preserved all the time though.

    Any reason why?

    I need to use the "Date Created" time stamp preserved when downloading from my camera or SD cards, so I can sort the different files in time sequence, from different camera by the "Date Created" date. The Encoding Time stamp is not workable from Explorer.

    Any idea what's the problem.
      My Computer


  2. Posts : 42,982
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Just wondering- have you considered using the 'Media Created' date - available as a column in file explorer?
      My Computers


  3. Posts : 43
    Windows 10 Pro
    Thread Starter
       #3

    dalchina said:
    Just wondering- have you considered using the 'Media Created' date - available as a column in file explorer?
    Thanks, I looked at that, it seems not all mp4 files has that data. It is all very confusing with all these different media and formats. Then the Explorer copying unreliability does not help at all.
      My Computer


  4. Posts : 42,982
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4
      My Computers


  5. Posts : 706
    W10
       #5

    A similar issue regarding pictures was addressed in another forum. One suggestion was to use robocopy.
      My Computer


  6. Posts : 43
    Windows 10 Pro
    Thread Starter
       #6

    PiKo said:
    A similar issue regarding pictures was addressed in another forum. One suggestion was to use robocopy.
    Thanks, I'll look into that. Looks like it actually duplicate the file rather than "copying it" loosely....will look deeper.

    cheers
      My Computer


  7. Posts : 16,946
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #7

    Instead of straightforward copying, use the built-in utility RoboCopy for anything for which you want to preserve creation date. It has an add-on interface - see RichCopy - Joshua Hoffmann if you want to work through a UI.

    In cases where your source [SD card, camera memory] cannot be assigned a drive letter you will not be able to use RoboCopy and the copying operation will set Creation date-time to the same as the Modified date-time [or the current Date-Time].

    Where I have this limitation, I just copy the files over then sort them out afterwards. To do this sorting out, I drop the files onto this batch file or a shortcut to it and it sets the Creation date-time to the same as the LastModified date-time.

    SetCreatedFromDLM.bat
    Code:
    For %%X in (%*) do call :Processing %%X
    GoTo EndSetCreated
    :Processing
    powershell.exe -ExecutionPolicy ByPass Get-ChildItem  -LiteralPath "'%~1'" ^| %% {$_.CreationTime = $_.LastWriteTime} 
    GoTo :EOF
    :EndSetCreated
    Pause at end during testing
    You can delete or remark out the Pause … line when you are happy with the batch file

    To make this more convenient, I have put a shortcut to this batch file in my SendTo folder** so I can just select the files I want to sort out then right-click, SendTo, SetCreatedFromDLM
    [** %UserProfile%\AppData\Roaming\Microsoft\Windows\SendTo]

    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:54.
Find Us




Windows 10 Forums