Need copy date taken between folders

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, XnTriq, xnview

Post Reply
reddwarf4ever
Posts: 21
Joined: Sun Aug 21, 2022 11:34 pm

Need copy date taken between folders

Post by reddwarf4ever »

Hello
The reason is complicated, but what I need to do is copy the date taken metadata only from a lot of files, within folders to another set of files in folders.

Both sets of folders and files are identical, but I just need to copy the date taken from one set to the other, does seem odd, but there is a good reason….

Can xnview do this ?

Thanks
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: Need copy date taken between folders

Post by michel038 »

A possible method, with Windows OS and jpg photos
(I have not enough time this week to give more details)
You'll have to replace coloured items by your own parameters

1) Create file list with xnviewmp
- Select files
-Tools>Create>File list
use this : {Directory}{Filename With Ext},{EXIF:Date Taken [Y/m/d H:M:S]}
Select "Text" output format, use "Preview" , and save as MyList.txt

2) Edit file list
- Edit MyList.txt with a text editor :
- in first line, replace existing headers by :
SourceFile,Exif:DateTaken
- For each line, replace (source) paths by the paths where your destination files are stored. (With a "replace" function)
- Save as ... in the following folder :
C:\... (your xnviewmp installation path)\AddOn\MyList2.csv

3) ExifTool will read this file list, and update target photos
Open a cmd window, go to xnview installation directory, and "AddOn" subfolder
(cd C:\( program ... ?) \XnViewMP\AddOn )
launch ExifTool process :
exiftool -ext jpg -csv="MyList2.csv" "C:\my photos to update\"
(C:\my photos to update\ represents the folder containing your target photos)
Read the exiftool report (n files updated ...) and close it's window
that's all.


a lot of _original files will remain in the same directory. It's useful if a mistake would have damaged your photos.
Check with xnviewmp if it's all right before deleting them

Maybe some errors in all this, or some parameters need to be adjusted ... sorry
Post Reply