@ echo off rem rem File name: LR-datetimexmp2exif.bat rem rem This batch file processes all jpg files in a subdirectory. rem This batch file requires the parameter file LR-datetimexmp2exif.args for data field mapping. rem This batch file requires an installed copy of exiftools by Phil Harvey. rem Download exiftools windows command line version and rename the file exiftools.exe. rem Place the exiftools.exe file in your windows directory or on your system path. rem rem rem --> This process overwrites the original jpg files so make sure you have a backup! <-- rem rem echo+ echo This batch file works in the current directory. echo+ echo It copies all JPG files' XMP-EXIF date/time data fields to their echo mapped EXIF date/time data fields. echo+ echo XMP to EXIF field mapping is controlled by the file LR-xmpdatetime2exif.args. echo+ echo Primary use of this batch file is to correct a bug in Lightroom that echo corrupts the EXIf time meta data fields if create time is echo edited or time shifted in Lightroom. echo+ echo It is typically used to fix EXIF date-time fields of files time echo shifted in Lightroom to enable correct geocoding. echo+ echo Note that Lightroom only displays the XMP-EXIF time meta data fields. echo+ echo Many other tools, such as RoboGEO, rely on the EXIF time data fields. echo+ echo ***************************************************************************** echo * This process overwrites the original jpg files! Ensure you have a backup! * echo ***************************************************************************** echo+ echo Press CNTRL and C to abort. echo+ pause echo+ echo on exiftool -tagsFromFile "@" -@ LR-datetimexmp2exif.args *.jpg -overwrite_original -k -v1 echo off echo+