This code for converting .mov files works in console (console version has single ‘%’), but it doesn’t work in .bat script.
FOR /F "tokens=*" %%G IN ('dir /b *.MOV') DO ffmpeg -i "%%G" -c:v libx265 -crf 18 "%%~nG.mp4"
‘dir /b *.MOV’ is not recognized as an internal or external command, operable program or batch file.
I have really no idea why.
If I just make a .bat with:
dir /b *.MOV
It works file. But inside For loop it’s not recognized.