ExifTool Forum

ExifTool => The Image::ExifTool API => Topic started by: Skidoo on October 25, 2013, 01:53:14 PM

Title: Set FileCreateDate
Post by: Skidoo on October 25, 2013, 01:53:14 PM

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.

Title: Re: Set FileCreateDate
Post by: Phil Harvey on October 25, 2013, 02:19:44 PM
Thanks.  I added a note to the SetFileModifyDate docs.

- Phil