-
-
Save onesixromcom/61b98db3a6ed80d9fa826baf8e087169 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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