Appending original filename to end of new name

Started by greddin, January 02, 2022, 12:01:37 PM

Previous topic - Next topic

greddin

Hi all,

I'm using the following command to rename videos file to the CreateDate. This works well.

exiftool -overwrite_original "-filename<CreateDate" -d %Y-%m-%d_%H%M%S%%-c.%%le -api QuickTimeUTC *.*

But I'd like to preserve the original filename in the newly renamed file. 

For example, if the original filename is GOPR0006.mp4, the new name would be something like: 2019-01-12_094754 GOPR0006.mp4

Is this possible? Thanks.

StarGeek

Change the -d (-dateFormat) option to
-d "%Y-%m-%d_%H%M%S %%f%%-c.%%le"

Quotes will be needed because of the space added before the original filename.
"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