Issue with Moving Files

Started by igor.goluntsov, November 28, 2014, 06:30:42 AM

Previous topic - Next topic

igor.goluntsov

Hello All,

As described here
http://www.exiftool.org/filename.html

i'm trying to run this on my windows 8.1 with .bat file
exiftool -d %Y-%m-%d "-directory<datetimeoriginal" image.jpg

And i got this at the exit
E:\TETS\m-d

instead of
E:\TETS\11-28

What Did I Do Wrong?

Phil Harvey

You must double all "%" characters in a .bat file.  So your command should look like this:

exiftool -d %%Y-%%m-%%d "-directory<datetimeoriginal" image.jpg

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