ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: jmwjmw on October 30, 2012, 01:52:16 PM

Title: filename basename problem
Post by: jmwjmw on October 30, 2012, 01:52:16 PM
Hi -- I amusing exiftool 9.02 on Windows XP via the Command line. I am trying to write the base file name to a tag.

When I run the following command, I have success:

exiftool -"XMP:Title<filename" -overwrite_original c:\somepic.jpg

But when I try the next command on the same pic, I get a "No writable tags found" message:

exiftool -"XMP:Title<basename" -overwrite_original c:\somepic.jpg

Any ideas on what I am doing wrong?

thanks

Jim
Title: Re: filename basename problem
Post by: Phil Harvey on October 30, 2012, 01:54:10 PM
Hi Jim,

The BaseName tag is not pre-defined.  It is one of the example user-defined tags in the sample config file (https://exiftool.org/config.html).   If you install this config file then your command should work.  Read the comments at the start of the sample config file for instructions.

- Phil
Title: Re: filename basename problem
Post by: jmwjmw on October 30, 2012, 02:30:43 PM
Phil -- Worked great ... thanks for the quick reply.

Jim