creating a filename from full directory-filename

Started by Shackers, November 21, 2014, 09:17:17 PM

Previous topic - Next topic

Phil Harvey

Hi Shackers,

Quote from: Shackers on March 12, 2015, 02:39:50 AM
As an experiment I tried

exiftool -r -m -ext * "-filename < ${directory;s(/)(#)g;s/://}#%%f.%%e" %1

and it worked on both - and presumably? all others!

Yes.  Well done.

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