Skip to content

Instantly share code, notes, and snippets.

@onesixromcom

onesixromcom/convert.cmd Secret

Created Sep 18, 2020
Embed
What would you like to do?
@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
You can’t perform that action at this time.