Set FileCreateDate

Started by Skidoo, October 25, 2013, 01:53:14 PM

Previous topic - Next topic

Skidoo


Using exiftool perl library 9.39 with following code to set FileCreateDate and was getting errors, but no clue as to why just -1 return.

$exifTool->SetNewValue('FileCreateDate', $cdate , Protected => 1);
$exifTool->SetFileModifyDate($tmpfile,undef,'FileCreateDate');

Ran the command line exiftool.pl and got the following error message, which was the clue I needed, works now.
... Install Win32API::File::Time to set FileCreateDate

It may be that because I am running ActiveState Perl 5.16.3 64bit, that this module is not installed.  It might be an idea to add this module requirement to the exiftool perl lib doc. for SetFileModifyDate.


Phil Harvey

Thanks.  I added a note to the SetFileModifyDate docs.

- 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 ($).