Ha ezt a parancsot futtatom parancssorból, akkor szépen végre is hajtódik, minden probléma nélkül.
for %f in (*.webp) do magick -quality 95 "%~f" "%~nf.jpg"
Ha viszont beleteszem egy batch file-ba, akkor az alábbi hibaüzenetet kapom:
The following usage of the path operator in batch-parametersubstitution is invalid: %~nf.jpg"
For valid formats type CALL /? or FOR /?The syntax of the command is incorrect.
Mi lehet a probléma (és a megoldás)!?