ExifTool Forum

ExifTool => Newbies => Topic started by: DirkM on August 13, 2013, 04:40:00 PM

Title: Extract XMP raw file name to rename file
Post by: DirkM on August 13, 2013, 04:40:00 PM
Hi,

my hdd crashed and I had to recover my photos (Nikon D7000). Most of the photos are now renamed by the recovery software, but I found out, that the original file name is still stored in the "XMP:raw file name" tag.

How could I write a batch file to extract the original filename to the rename the file?

Kind regards,
Dirk
Title: Re: Extract XMP raw file name to rename file
Post by: Phil Harvey on August 13, 2013, 07:05:28 PM
Hi Dirk,

Try this:

exiftool "-filename<rawfilename" DIR

where DIR is the name of the directory containing the images.

- Phil
Title: Re: Extract XMP raw file name to rename file
Post by: DirkM on August 14, 2013, 01:43:34 PM
Hi Phil,

thank you for your fast reply!

I'm happy! It worked as it should.

Dirk