I have 112 TIFF files that all contain the following tag:
Exif 0x9c65 : New-PC\fdeutsch
I would like to change that tag in all files to:
Exif 0x9c65 : NEW-PC\devon
I'm hoping to create a batch file, can anyone point me in the right direction ? I can get each filename with no problem.
First you need to create a user-defined tag to be able to write this. See the NewEXIFTag definition in the sample config file (https://exiftool.org/config.html) for an example. But you will need to determine the Writable format for the tag and which IFD it is in. To get the IFD for WriteGroup in the config file, use this command:
exiftool -u -G1 -Exif_0x9c65 FILE
To get the Writable format, use the -v2 option and look for this line:
| | - Tag 0x9c65 (XX bytes, YYYY):
Here, YYYY will likely be "string[XX]", in which case you set "Writable" to "string" in the config file.
Then use your config file with whatever name you gave the tag to write the new value:
exiftool -config my.config -mytagname="NEW-PC\devon" FILESorDIRS
Although the backslash may cause complications if it is the escape character on whatever platform you are using.
Good luck.
- Phil