Problems of Moving *.MOV to directories "YMD"

Started by iwolf, May 29, 2021, 03:24:45 PM

Previous topic - Next topic

iwolf

Hi, new user here.

I read most of the help pages and followed the instructions but still have problems.


What I want:
I import files from iphone and what to organize the pictures and *.MOV files into the direction with format "YYYY-mm-dd".

What I did:
1. I checked the "create date" of the files and they exist. (attached screenshot)
2. I use command
exiftool -d %Y-%m-%d "-Directory<createdate" .
3. The command create a new folder : "m-d" and moved the file into that folder. This happens not only to the *.MOV file but also to the JPG file too.(attached screenshot)

My guess:
The tool does read the createdate, but cannot convert to %Y-%m-%d

Please help.

Thanks.

StarGeek

This image

says it all.  You are using a date format string of m-d, no percentage signs.  I suspect this is FAQ #27.

Also, you appear to be using Fancy quotes "" '' and you need to use straight quotes " '.  Make sure you're not copy/pasting the command from a Word/Google Doc.  Word processing programs will "help" you by "fixing" your quotes, making them unusable for the command line.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

iwolf

Thank you so much for the accurately prompt response.
It's the "%" in command line messed up.

Thank you. Everything works now.