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.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).