ExifTool Forum

ExifTool => Newbies => Topic started by: Bluecheese81 on May 09, 2021, 07:46:07 PM

Title: Commands for Files
Post by: Bluecheese81 on May 09, 2021, 07:46:07 PM
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!
Title: Re: Commands for Files
Post by: Phil Harvey on May 11, 2021, 01:20:03 PM
Something like this?:

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

- Phil
Title: Re: Commands for Files
Post by: StarGeek on May 11, 2021, 01:26:59 PM
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 (https://exiftool.org/exiftool_pod.html#p-FMTFILE-or-STR--printFormat) for more details.
Title: Re: Commands for Files
Post by: Bluecheese81 on May 14, 2021, 01:31:45 PM
Thanks for the responses! I got a message saying that the files could not be read. Could it be something on my end?
Title: Re: Commands for Files
Post by: StarGeek on May 14, 2021, 02:22:15 PM
It helps if you copy/paste the exact command and output here. Use the code button above (https://exiftool.org/forum/Themes/default/images/bbc/code.gif) to make it easier to read. Otherwise we have no idea what happened on your end.