File Name based upon Date Time and Camera Model

Started by BobnN, March 04, 2018, 02:12:17 PM

Previous topic - Next topic

BobnN

The standard Filename for a .jpg seems meaningless.
I'd like to replace it with the EXIF forTime Created and Camera Model.
That way I'd know when it happened and where it came from

I found this somewhere and it almost does the job except it puts .jpg after the Time and before the camera model.

exiftool '-filename<${datetimeoriginal} ${model;} ' -d "%Y-%m-%d %H.%M.%S%%-c.%%e" .

I'm new at EXIFTool and can't figure out a solution.
Help would be appreciated.

StarGeek

The -d reformats how datetimeoriginal is displayed.  The %e in that reformat stands for the extension, which is why the extension shows up early.  So it has to be moved from the -d part of the command to after the Model tag.

The quotes on this command are inconsistent.  If you're on a Mac/Linux system, it will work, but single quotes are best to avoid problems if you try something else.  On Windows CMD, you need double quotes.

Try this:
exiftool '-filename<${datetimeoriginal} ${model;}.%e' -d "%Y-%m-%d %H.%M.%S%%-c" .
"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

BobnN

Thank You So Much!
That was the answer.
A file named:  G0010713.jpg  became  2017-05-23 08.17.28 HERO4 Silver.jpg

The explanation was helpful because I'm just starting EXIFTool.