I'm trying to batch add cover art to all my MKV files in Windows using Batch scripting but I can't. My file structure is like this:
Both video and image have the same filename, the only difference is the extension.
I've tried the following command:
FOR %%f IN (*.mkv) DO ( mkvpropedit.exe "%%~nf.mkv" --attachment-name "cover" --attachment-mime-type "image/jpeg" --add-attachment "%%~nf.jpg" )
It's weird how this command works for other apps and it's not working for MKVPropedit.
The result is:
Error: The file '%%~nf.jpg' could not be opened for reading: open file error.
My jpg files are not corrupt so I don't really know what that error means.