ExifTool Forum

ExifTool => Newbies => Topic started by: igor.goluntsov on November 28, 2014, 06:30:42 AM

Title: Issue with Moving Files
Post by: igor.goluntsov on November 28, 2014, 06:30:42 AM
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?
Title: Re: Issue with Moving Files
Post by: Phil Harvey on November 28, 2014, 07:48:09 AM
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