Need to copy the date modified to date picture taken on multiple files

Page 1 of 3 123 LastLast

  1. Posts : 1,523
    windows 10 PRO
       #1

    Need to copy the date modified to date picture taken on multiple files


    Need to copy the date modified to date picture taken on multiple files

    whats my best option, this is to copy to the same file, or i could make a copy of the files in another folder

    i looked at various apps inc exiftoolgui, but none seem to do this, which is quite basic...i believe

    thanks
      My Computer


  2. Posts : 14,026
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #2

    Just a question, seems to me the desire is to get the date from Properties, Details of an image file, don't know of anything that can extract that except what I see in this image:
    Need to copy the date modified to date picture taken on multiple files-untitled.png
    Need to copy the date modified to date picture taken on multiple files-7.jpg
      My Computers


  3. Posts : 16,975
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #3

    I assume this is not a one-off job for a small set of files that you'd be happy to read individually in Properties, Details then alter manually using, say, SKTimeStamp Not relevant. This idea would only apply to wanting to read the Date taken and change the Date created or Date last modified to that value. You want the other way around and this idea cannot be used for changing Date taken.



    I do not know of a ready-made tool for the job but you might find one.



    I think you'll have to write your own PowerShell tool. See Set EXIF DateTaken as file CreationTime - Stack Overflow for some inspiration.

    You should be able to operate on the original files but could make copies of them first if you wanted to be cautious.

    The way I do it for my two needs
    - Set Date last modified from Date created
    - Set Date created from Date last modified
    is to write a script to do each job, create shortcuts to those scripts & copy the shortcuts into the SendTo folder
    then I can right-click on files & select SendTo then the relevant shortcut for whichever job I want to do on that occasion
    so that the desired script executes for the selected files.

    My two scripts are:
    - Set Date last modified from Date created {vbs script, ps1 script also worked out}
    - Set Date created from Date last modified {batch script making use of PowerShell commands}


    I seem to have some old notes that are relevant to your particular needs.
    In my PS folders
    How can I get programmatic access to the Date taken field of an image or video - SO
    How to rename your photos by the date taken - HM
    Modify Date Taken values on Photos with PowerShell, the Update-ExifDateTaken script cmdlet - CW
    In my vbs folders
    vbscript system.photo.datetaken problem - TomL - TN
    VBScript to extract Date Taken from a photo - SU
    Find all photographs taken on a certain date - SO



    Best of luck,
    Denis
    Last edited by Try3; 21 Aug 2022 at 09:25.
      My Computer


  4. Posts : 1,523
    windows 10 PRO
    Thread Starter
       #4

    Thank you for the ideas
      My Computer


  5. Posts : 119
    Windows 11 Home 64 Bit
       #5

    Hi,

    Try this software! BulkFileChanger

    Need to copy the date modified to date picture taken on multiple files-file-time-date.jpg

    Need to copy the date modified to date picture taken on multiple files-file-time-date-change-.jpg
      My Computer


  6. Posts : 1,776
    Windows 10 Pro
       #6

    reddwarf4ever said:
    Need to copy the date modified to date picture taken on multiple files

    whats my best option, this is to copy to the same file, or i could make a copy of the files in another folder

    i looked at various apps inc exiftoolgui, but none seem to do this, which is quite basic...i believe

    thanks
    Actually I have been able to change file dates using EXIFToolGUI.
      My Computers


  7. Posts : 1,203
    11 Home
       #7

    Code:
    exiftool '-DateTimeOriginal<FileModifyDate' dir
    It is actually the exact opposite of the 10th example under COPYING EXAMPLES. See: exiftool Application Documentation
      My Computers


  8. Posts : 1,223
    W10-Pro 22H2
       #8

    I hope the OP is still interested! I have spent a lot of time looking into this (for fun), and have obtained promising results, but it's too late to detail it all now. I have a vbs script which does what you want, and will reveal it and explain how I got there tomorrow. Suffice to say that there were some gotchas. It will need some refining to suit your needs, but has the basics sorted (I think). Back later, Martin.
      My Computer


  9. Posts : 1,523
    windows 10 PRO
    Thread Starter
       #9

    Wow Martin, I spent ages looking for an app to do the job, some dud it some didn’t do recursive folders etc etc,
    Bulk file changer looks promising, but finally found xnview, which does it all, most likely uses ExifTool as it’s basis.
    So I’m all sorted for now, having fun and games with Lightroom Classic, it’s been a steep learning curve, but getting somewhere finally, days and days wasted, well not wasted, let’s call it training. So I’m sorry Martin if I’ve made you work. Thanks everyone else also,
    It’s interesting that some basic utility apps to just change a date or rename some files cost so much, when if you look hard enough there are many free alternatives, some even work LOL
      My Computer


  10. Posts : 1,223
    W10-Pro 22H2
       #10

    reddwarf4ever said:
    So I’m all sorted for now...
    Well, that is just as well, as it turns out I managed to solve the exact opposite of your problem! But I can now confidently say that it is straightforward (?) to copy the 'date taken' field from the file attributes, and copy it to the 'date modfied' field, using a vbs script. It took some effort to discover and remove the unicode chrs that Powershell couldn't understand, and to persuade PS to use the date locale settings that it ought to. So I went to bed happy that I had it all sorted.

    Then this morning, when I set about writing up what I had learned yesterday (with a view to putting the completed text into a post here eventually), I re-read your original post, and Dennis' post #3 (I should make it clear that I started out OK, but wandered off in the exact opposite direction at some point). Oh, well, it should be strightforward to write the 'mod' date into the 'taken' field, shouldn't it? oh no, Dennis was right (unsurprisingly) - it doesn;t seem to be possible, at least not with vbs and PS.

    I have given up on this, as it is not even clear where Windows gets its 'date taken' value from - probably the EXIF data, but just which of the (possible) 4 date fields available? A quick test suggests it is the 'ExifDTOrig' field #36867. I have previously (2013) looked at reading (and tweaking?) EXIF fileds using vbs, but its not for the faint-hearted.

    Rather bizarrely, one can edit the date part of the 'taken' field under the details tab of the file properties, and this does tweak the DTOrig & DTDigitized (36868) EXIF data. So I have learnt something!

    Good luck with LightRoom. Martin
      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:47.
Find Us




Windows 10 Forums