ExifTool Forum

ExifTool => Newbies => Topic started by: MunichFan on March 08, 2018, 01:15:39 PM

Title: writing the same comment into a lot of files
Post by: MunichFan on March 08, 2018, 01:15:39 PM
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
Title: Re: writing the same comment into a lot of files
Post by: Phil Harvey on March 08, 2018, 01:34:29 PM
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
Title: Re: writing the same comment into a lot of files
Post by: MunichFan on March 08, 2018, 01:42:12 PM
thank you very much for your quick and helful answer. That worked, have a nice evening/day