writing the same comment into a lot of files

Started by MunichFan, March 08, 2018, 01:15:39 PM

Previous topic - Next topic

MunichFan

Hello,

I am a newbie, and so is my question:

I would like to write the same comment into let's say 100 different files with very different filenames, all in one directory, like:
- path1\file1
- path1\file2
- path1\file3
- path1\file4
- path1\file5
and so on, but that is only part of the whole directory.

I assume, the easiest way is to doing it with an argfile, plus I would like to use the tag -overwrite_original

How can I do it?

Thank you very much in advance for helping

MunichFan

Phil Harvey

like this:

exiftool -@ ARGFILE -overwrite_original -comment="some comment"

where ARGFILE is the name of a file containing the file names, one per line.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

MunichFan

thank you very much for your quick and helful answer. That worked, have a nice evening/day