Help with renaming and sorting

Started by farm, September 19, 2011, 11:26:49 PM

Previous topic - Next topic

farm

I've been trying to organize my videos for a while and just found this useful tool.
I've been trying for a couple nights to read through everything and have had some success, but I'm stuck.

I'll try to be quick...

I'm trying to rename/sort all my mts files from my Sony HD camcorder into a more useable and searchable directory structure.

I have a directory "c:\Sony" that has all the files.  The files are already in the format of TimeDateOriginal ie 2008:12:20 09:56:57 = "20081220095657"
I have tried to batch copy files to a new directory structure using the following command

exiftool -ext m2ts "-directory<datetimeoriginal" -d "%y/%/m%d" /sony

and it created directories name "%y -> % -> M -> sony"

Do I need to add % because I'm doing this in Windows?
Is there a quicker or more efficient way to batch convert all of the files into the desired directory structure?  I really only need year and month, not day or time.

Thanks for any help.

Phil Harvey

I'll try to answer your questions.

I think your command:

exiftool -ext m2ts "-directory<datetimeoriginal" -d "%y/%/m%d" /sony

should be:

exiftool -ext m2ts "-directory<datetimeoriginal" -d "%y/%m/%d" /sony

If you are running the command from a Windows batch file, all "%" characters must be doubled.  Otherwise, Windows is the same as other systems except that double quotes must always be used.

If you don't want the day, drop the /%d from the date/time format.

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