cmd passes filenames in OEM850 code page in e.g. German Windows, but exiftool does not know this encoding.
Even after cmd /u exiftool does not support dir names with e.g. umlauts without warning.
E.g.
for /d %N in (2017*) do exiftool -m -XMP-mwg-rs:all -o %d%f_XMP-mwg-rs.xmp -ext jpg -r "%~N"
gives lots of warnings:
Waring: FileName encoding not specified - ....
So for direct use in batches something like
-charset filename=OEM850
and
-charset filename=OEM437
would be needed.
PS.: Using command file is no option in many cases, since this will lead to other problems if the script is allowed to be started more than once in parallel and with left over command files.
Thanks for this suggestion.
ExifTool 10.65 (to be released soon) will have support for DOSLatinUS (cp437) and DOSLatin1 (cp850).
- Phil
Edit: ExifTool 10.65 is now available.