how to batch rename all pdf files in a folder to the pdf metadata title?

Started by drramimagdi, May 22, 2022, 04:08:18 PM

Previous topic - Next topic

drramimagdi

i tried a code that i found elsewhere but it's not working
exiftool.exe -d %Y '-fileName${Title} - $Author [$CreateDate]'.pdf  -ext pdf

StarGeek

You didn't include the tag copy operation. Try
exiftool.exe -d %Y '-fileName<${Title} - $Author [$CreateDate]'.pdf  -ext pdf

Though this will fail if any one of Title, Author, or CreateDate doesn't exist.  If this command fails, it helps if you copy/paste the output and use the Code Button on the output.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype