Main Menu

Commands for Files

Started by Bluecheese81, May 09, 2021, 07:46:07 PM

Previous topic - Next topic

Bluecheese81

Hi! I'm new to Exiftool.

I've been playing around with it, and I was wondering if there was a command to display the files as:

extiftool [Date created (yyyy:mm:dd)] [filename] [size (labeled with the Bs, KBs, MBs, GBs, TBs, etc.)]

Thanks!

Phil Harvey

Something like this?:

exiftool -p "$createdate $filename $filesize" -d %Y:%m:%d DIR

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

If you want additional text, just place it at the appropriate place.  For example, if you want brackets around the tag data, you would use -p "[$filename]".  See the -p (-printFormat) option for more details.
"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

Bluecheese81

Thanks for the responses! I got a message saying that the files could not be read. Could it be something on my end?

StarGeek

It helps if you copy/paste the exact command and output here. Use the code button above to make it easier to read. Otherwise we have no idea what happened on your end.
"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