Changing datetime from a text file

Started by rossg, June 24, 2019, 12:47:45 PM

Previous topic - Next topic

rossg

I am writing a windows program that needs to change the dates of a set of image files using a test file as input.  The text file has a line fore each file with the format  filename,datetime   This format is flexible.

There is probably a way to do this using ExifTool but I have not found it.

Ross

Phil Harvey

Hi Ross,

You can import values from a CSV file.  See FAQ 26 for details.

The first row of the file should be "SourceFile,FileModifyDate" if, for example, you want to set the filesystem modification dates of the files.

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