this is the code i once use in the past to batch add a secondary audio to a tv show, however i can not remember or find the videohelp post i used to help me do it and also the script was a little messy because i needed to rename all episode to sequential order 1,2,3 etc, also mkvs needed to be on folder A and audios needed to be on folder B and end result on folder "output", my question is it possible to do this on a more efficient way?
* 1) do i have to rename episodes and audios files to sequential order or can it be done so it scan the folder for mkv, audios files, etc or idk?
* 2) can it be automated so that it replaces or delete original mkv files?
thank you in advance.
Code:@echo off setlocal enabledelayedexpansion cd /D %~dp0 cd A attrib -h *.* set i=0 for %%a in (*.*) do set /A i+=1 & set alpha[!i!]=%%a & set gamma[!i!]=%%~na cd .. cd B attrib -h *.* set i=0 for %%b in (*.*) do set /A i+=1 & set beta[!i!]=%%b cd .. set n=%i% for /L %%i in (1,1,%n%) do "D:\Users\aniel\Documents\portable programs\mkvtoolnix\mkvtoolnix\mkvmerge.exe" -o "output\!gamma[%%i]!.mkv" "A\!alpha[%%i]!" --no-video "B\!beta[%%i]!" pause
Results 1 to 2 of 2
Please do post any more threads on the same subject,one thread is enough,this thread is closed.Continue here-
https://forum.videohelp.com/threads/395568-any-batch-scrip-guru-around-here#post2569721I think,therefore i am a hamster.