ExifTool Forum

ExifTool => Newbies => Topic started by: Sunny on February 07, 2022, 03:16:11 AM

Title: CMD command - Why does it not work?
Post by: Sunny on February 07, 2022, 03:16:11 AM
I am trying to execute the command in CMD from example 13 (https://exiftool.org/filename.html#ex13) but unfortunately it does not work. What is the problem that it does not work?

exiftool -d %Y "-filename<$createdate/${model;}/${createdate#;DateFmt("%Y-%m-%d_%H%M%S")}.%e" test.jpg



Title: Re: CMD command - Why does it not work?
Post by: Phil Harvey on February 07, 2022, 07:21:29 AM
The problem is quotes within quotes.  Change the inner quotes around the date format string to single quotes.

- Phil
Title: Re: CMD command - Why does it not work?
Post by: Sunny on February 07, 2022, 07:37:31 AM
Thank you very much Phil, now everything works  :D