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

* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).