Inconsistent date formatting between cmd line immediate and stay_open

Started by Out2Tango, November 20, 2021, 09:52:54 PM

Previous topic - Next topic

Out2Tango

Hello. I'm can't seem to get the date formatting to work on Windows 10/11 using the stay_open parameter in a cmd window.

This works:
Exiftool -d "%m/%d/%Y %H:%M:%S" -DateTimeOriginal tail.jpg
Date/Time Original              : 02/03/1923 00:00:00

This complains about an invalid tag name. What am I missing, please? Thanks!
exiftool -stay_open True -@ -
-d "%m/%d/%Y %H:%M:%S"
-DateTimeOriginal
tail.jpg
-execute

Invalid TAG name: "d "%m/%d/%Y %H:%M:%S""
Date/Time Original              : 1923:02:03 00:00:00
{ready}

StarGeek

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype