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.
Thanks. I added a note to the SetFileModifyDate docs.
- Phil