cd %~dp0 mkdir converted for /f "delims=" %%A in ('dir *.mp3 /b /a-d-h-s') Do sox %%A "converted/%%~nxA" channels 1