I'm sure this should be very simple, but for the life of me, I cannot move a file to another folder - I can get it to copy just fine, but nothing happens if I try (what I figure should be the correct code) to move the file.
This works to copy the file:
exiftool -o "E:\albums\2010-06-19 Anacortes\IMG_6766.jpg" "E:\albums\temp\IMG_6766.jpg"
Where I'm copying out of the temp folder into the permanent folder.
But I don't want to copy I want to move the file. So I thought that -d was what I wanted to use, but this doesn't work at all:
exiftool -d "E:\albums\2010-06-19 Anacortes\IMG_6766.jpg" "E:\albums\temp\IMG_6766.jpg"
Can someone point me in the right direction? Thanks!
Hi Tammie,
The -d option specifies a date/time format. You need to use this option only if you want the new directory name to be generated from a date/time value in the metadata.
The -o option is used to specify the output directory when editing metadata. Since it seems you don't want to edit metadata, then this probably is NOT what you want. But if you do, adding the -overwrite_original option will remove the original after the modified file is written to the output directory.
But since you just want to move a file, the best way is to change the "Directory" tag, like this:
exiftool "-directory=E:\albums\2010-06-19 Anacortes" "E:\albums\temp\IMG_6766.jpg"
You can also copy any other tag to the directory tag to allow the directory to be set from the metadata:
exiftool "-directory<$TAG1/$TAG2/..." FILE ...
The -d option is very handy for when combined with this command if you want the directory name to include a date/time value.
- Phil
Thank you so much for the help! For some reason I was thinking d stood for directory not date. Your solution works perfectly. Wish I would have asked earlier.