Hi
I am interested in adding the metadata tags to display in Windows Explorer for the subject and comments fields.
I found useful discussion on the forum back in the days of Windows 7. I created an args file with the following:
-EXIF:XPSubject=photo by myname
-EXIF:XPComment=Copyright myname
and ran against some JPEG files. The Subject field is updated but the comments field is not. Does anybody have a suggestion as to the correct tag to update for the Windows Explorer to display in the comments field?
XPComment still works here on min Win10 system. You can also try EXIF:UserComment and XMP:UserComment.
See the Windows Metadata thread (https://exiftool.org/forum/index.php?msg=32875). I don't have Win11, so I can't test any updates for that, but I hear PNG files have better support.
-EXIF:XPComment=Copyright myname still fails to update the Comment field on my Windows 10 but -EXIF:UserComment=Copyright myname did.
I can only update these two tags in JPEG files, my code to update XMP file for NEF files fails to add either tag to the XMP file. it is using the same arg file and the other tags in the arg file are updated which puzzles me.
exifCmd -P -q -overwrite_original -srcfile %d%f.xmp -ext nef . -@ CopyrightReplace.args
Looks OK to me as the other tags are added, are these two tags compatible with XMP files?
-EXIF:XPSubject=photo by myname
-EXIF:UserComment=Copyright myname
Wondering if XMP files support EXIF tags?
Quote from: Ad_Astra on February 10, 2025, 03:44:50 PMmy code to update XMP file for NEF files fails to add either tag to the XMP file. it is using the same arg file and the other tags in the arg file are updated which puzzles me.
...
Wondering if XMP files support EXIF tags?
XMP files
only support XMP data.
Is it possible when using an args file to set the value of a tag equal to another tag or do I need to add multiple tag entries with the same value?
e.g. I set "-XMP:UserComment=some text" first. Then I set "-EXIF:UserComment=some text". Would be easier to keep consistent if I could assign the value from the first tag rather than retype the tag vlaue.
I tried in my args file -IPTC:CopyrightNotice < XMP:UserComment as a test to see if the text was uopdated but got Warning: IPTCDigest is not current. XMP may be out of sync .
I also tried -EXIF:XPComment < -XMP:UserComment but this just wrote the text < -XMP:UserComment into the tag not the value
Quote from: Ad_Astra on February 11, 2025, 06:55:28 AMIs it possible when using an args file to set the value of a tag equal to another tag or do I need to add multiple tag entries with the same value?
It's not possible to set the value of a tag and then copy that tag into another, either on the command line or a args file.
What you can do is use the
-UserParam option (https://exiftool.org/exiftool_pod.html#userParam-PARAM-VAL). Set the userparam and then copy the userparam into other tags.
exiftool -userparam myvar="New Title" "-title<$myvar" "-comment<$myvar" a.jpgSee here (https://exiftool.org/forum/index.php?msg=45237)
Thanks StarGeek, I can see how UserParams would work to update multiple tags with consistent values, I will use that technique.