Auto rename on conflicting file names

Started by marlar, November 29, 2011, 04:08:41 AM

Previous topic - Next topic

marlar

I often use the "move to date folder" feature to organize my pictures. Sometimes there is a name conflict though, so I would very much like a general option for ExifTool which will adjust the filename if there is a conflict.

For example, if there is a file already called Img_8042.jpg the moved file would be called Img_8042b.jpg or the like.

Thanks for a great tool btw!

Ps. Why is it not in the Linux repositories?

Phil Harvey

Quote from: marlar on November 29, 2011, 04:08:41 AM
I often use the "move to date folder" feature to organize my pictures. Sometimes there is a name conflict though, so I would very much like a general option for ExifTool which will adjust the filename if there is a conflict.

For example, if there is a file already called Img_8042.jpg the moved file would be called Img_8042b.jpg or the like.

You can add %lc to the file name to do exactly this (ie. "-filename<$createdate/%f%lc.%e")

QuoteThanks for a great tool btw!

You're welcome! :)

QuotePs. Why is it not in the Linux repositories?

Linux repositories?

- 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 ($).