move file into folder and rename

Started by locka, September 30, 2010, 11:06:49 PM

Previous topic - Next topic

locka

I know this should be straight forward but I need move and rename some recoverd nef files.  I need to rename the files like the following

"-filename<DSC_$Filenumber"

and put them in strucuture ie 2010/Jan/01

-r -d %Y/%b/%d

But for the life of me I can only get one or other to work on the command line not both together.

Phil Harvey

Try this:

exiftool "-filename<$createdate/DSC_$Filenumber.%e" -r -d %Y/%b/%d -ext nef DIR

where DIR is the name of the directory containing the images.

(Note: On Mac/Linux use single quotes instead of double quotes around arguments containing a "$" symbol)

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