ExifTool Forum

ExifTool => Newbies => Topic started by: descotes on November 26, 2017, 07:08:28 PM

Title: Change multiple files within directory
Post by: descotes on November 26, 2017, 07:08:28 PM
Question I have is I am changing dates in each of my files.  I'm using windows and have one folder that says "1971".  Within that folder are picture files that go like this:

1971-01-xx.tif
1971-01-xx.tif
1971-02-xx.tif
1971-02-xx.tif
1971-02-xx.tif
1971-02-xx.tif
1971-02-xx.tif
1971-03-xx.tif
1971-03-xx.tif

I am running this exiftool -overwrite_original -alldates="1971:02:01 12:24:36" and it's working.  However I'm doing it one at a time for each month and changing the month as I go.

Is there a way to do each month as a batch so I'm not doing them one at a time?
Title: Re: Change multiple files within directory
Post by: StarGeek on November 27, 2017, 12:15:06 AM
Instead of using the file, use the directory to get everything in that directory.  From your previous examples, I assume that you have CD to the directory that holds the pictures.  In that case, just use a dot
exiftool -overwrite_original -alldates="1971:02:01 12:24:36" .

Otherwise, you could use the full path to the directory
exiftool -overwrite_original -alldates="1971:02:01 12:24:36" C:\path\to\tiffs\photos\1971