Can Exiftool move files that have same timestamp (up to the second) to one folder?

I was taking pictures with exposure bracketing in sets of 3, so they have same-second timestamps. I want to split my images into folders where each folder holds the 3 bracketed images.

Edit I found a working solution in this exiftool.org messageboard thread

exiftool -d "%Y-%m-%d %H-%M-%S" "-Directory<datetimeoriginal" -ext ARW imagesfolder

Can I name the folder the name of the first file that getting copied instead of the date?

  • Exiftool only processes one file at a time and can't "remember" the name of a previous file. If the files have different filenames, then no, you can't put them into the same folder. If the files do have the same name, then you can use the %%f variable in the date format string. It would normally be just %f but the % needs to be doubled to add it to the date string. See the -w (-TextOut) option for details on %%f and -d (-dateFormat) option.
    – StarGeek
    Dec 20, 2022 at 16:47
  • 1
    On other cameras (for instance y Canon) shots from the same bracketing sequence will have different time stamps. But with the help of ExifTool, looking at the right data it is possible two write a script to move them to one directory per sequence.
    – xenoid
    Dec 20, 2022 at 20:44
  • 1
    @xenoid would you shate your workflow e.g. what to look for in EXIF. Trying to move bracketed photos. Timestamp alone is not enough.
    – MikaAdams
    Dec 21, 2022 at 1:44
  • I'll gladly do so, but change your question (or make a new one) because this one is explicitly about time stamps.
    – xenoid
    Dec 21, 2022 at 7:55


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.