ExifTool Forum

ExifTool => Newbies => Topic started by: andy95 on May 25, 2014, 04:44:55 AM

Title: Exiftool and "CreateDate" by PDF files?
Post by: andy95 on May 25, 2014, 04:44:55 AM
Hallo.
If found this:
exiftool -filename -createdate -T -w+! %d/out.txt -r DIR

and I can write the createdate from all my "pdf files" to out.txt
This is nice.

But my problem is that I will the createdate from my "pdf file" for the file date.
Can exiftool rename the file with the createdate?
How I can make it? Thanks for your help and sorry for my bad english.
Title: Re: Exiftool and "CreateDate" by PDF files?
Post by: Phil Harvey on May 25, 2014, 06:40:57 AM
Yes, ExifTool can rename any file using the values of any extracted tags.

See this page (https://exiftool.org/filename.html) for details.

- Phil
Title: Re: Exiftool and "CreateDate" by PDF files?
Post by: andy95 on May 25, 2014, 07:48:57 AM
Thank's Phil for your help. I have no found answer of my question under filename.html.
Please see the attachment. I look for  rename the the pdf file.

Example:
test.pdf -> 25.05.2014 (date properties)
New:
test.pdf -> 27.08.2009
This is the Createdate from the pdf file by
exiftool -filename -createdate -T -w+! %d/out.txt -r DIR

What is the right command for rename the file date from createdate.

Title: Re: Exiftool and "CreateDate" by PDF files?
Post by: Phil Harvey on May 25, 2014, 09:31:07 AM
Sorry, I thought you wanted to change the FileName.

But it seems you want to copy the CreateDate to FileModifyDate:

exiftool "-filemodifydate<createdate" test.pdf

- Phil
Title: Re: Exiftool and "CreateDate" by PDF files?
Post by: andy95 on May 25, 2014, 09:49:35 AM
I have tested the command with 5 or more pdf files but all pdfs get a error message...
Please see the attachments. Thanks.
Title: Re: Exiftool and "CreateDate" by PDF files?
Post by: Phil Harvey on May 25, 2014, 09:56:08 AM
Your exiftool installation is corrupt.  Please follow these instructions (https://exiftool.org/install.html#Windows) to uninstall, then re-install exiftool.  Often it is sufficient to just delete the temporary files and re-run exiftool.

- Phil
Title: Re: Exiftool and "CreateDate" by PDF files?
Post by: andy95 on May 25, 2014, 10:12:10 AM
Yes, that is it. A new "Install" and this help. No error messages.
Big thanks for your help and for this very nice toll! Very, very much.
Bye Andy