ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: BarnabyAldrick on July 24, 2019, 08:30:03 AM

Title: Overwrite files without duplication?
Post by: BarnabyAldrick on July 24, 2019, 08:30:03 AM
Hi! Love the Exiftool app.

To open Sony A7III files in Lightroom Classic I've been using the command line:

exiftool -sonymodelid="ILCE-7M2" -ext ARW -r DIRECTORY

But as I don't want duplication of the files and to individually select and delete all the original files that are created after the ExifTool metadata amends, is there a way of modifying this command to simply to edit the metadata and overwrite the orginal RAW file?

And if not, how do I make this command put new or original files into their own folder for easier deletion?

Thanks in advance!
Title: Re: Overwrite files without duplication?
Post by: Phil Harvey on July 24, 2019, 08:50:59 AM
To delete the _original copies after they have been created, you can do this:

exiftool -delete_original -ext ARW -r DIRECTORY

or to avoid creating the _original copies in the first place:

exiftool -sonymodelid="ILCE-7M2" -ext ARW -r -overwrite_original DIRECTORY

or to put the new files in a different directory:

exiftool -sonymodelid="ILCE-7M2" -ext ARW -r -o OUTDIR/%d%f.%e DIRECTORY

- Phil
Title: Re: Overwrite files without duplication?
Post by: BarnabyAldrick on July 24, 2019, 12:46:32 PM
Amazing! Thanks so much Phil.

Great tool!