Running command line on multiple music files

99封情书 提交于 2019-12-02 08:07:45

Sure. You can do it with a one-liner from a cmd prompt.

for /f "delims=" %I in ('dir /s /b *.flac') do metaflac --dont-use-padding --remove --block-type=PADDING "%I"

If you're putting this into a .bat script, change %I to %%I in both places.

for /f "delims=" %%i in ('dir /s /b /a-d "C:\start\directory\*.flac"') do (
 metaflac --dont-use-padding --remove --block-type=PADDING "%%~fi"
)

should do this for you, scanning the entire directory tree from "C:\start\directory" for all .flac files and executing metaflac against each with your parameters.

Suggest you try a small copied subtree first, for safety's sake.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!