Skip to content

Instantly share code, notes, and snippets.

@sim2kid
Last active November 18, 2021 02:00
Show Gist options
  • Save sim2kid/007702839e24b69a49bedc7ded333002 to your computer and use it in GitHub Desktop.
Save sim2kid/007702839e24b69a49bedc7ded333002 to your computer and use it in GitHub Desktop.
Converts all wav files in a directory (and sub directory) to MP3 files. This is a destructive process. (Requires FFMPEG)
@echo off
call :treeProcess
goto :eof
:treeProcess
for %%F in (*.wav) DO (
ffmpeg -i "%%F" "%%~nF.mp3"
DEL %%F
)
for /D %%d in (*) do (
cd %%d
call :treeProcess
cd ..
)
exit /b
timeout 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment