Skip to content

Instantly share code, notes, and snippets.

@onesixromcom
Created September 18, 2020 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onesixromcom/61b98db3a6ed80d9fa826baf8e087169 to your computer and use it in GitHub Desktop.
Save onesixromcom/61b98db3a6ed80d9fa826baf8e087169 to your computer and use it in GitHub Desktop.
@echo off
ECHO =========================
setlocal enabledelayedexpansion
set argCount=0
for %%x in (%*) do (
set /A argCount+=1
set "argVec[!argCount!]=%%~x"
set "argFex[!argCount!]=%%~nxx"
)
echo Number of files to process: %argCount%
for /L %%i in (1,1,%argCount%) do (
echo Processfile !argVec[%%i]!
cmd /k C:\ffmpeg.exe -i "!argVec[%%i]!" -c:v copy -c:a libmp3lame "C:\convert\!argFex[%%i]!"
echo File saved at C:\convert\!argFex[%%i]!
)
explorer.exe C:\convert
ECHO =========================
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment