run mkvmerge through every file inside folder [SOLVED]
Posted: 10 Jul 2022 03:12
Hello everybody,
not sure if this is the right sub for my question but still I'm taking the shot.
I want to set up a batch script which runs through my entire folder and use mkvmerge to add a custom audio track to every mkv file inside this folder.
This is my script:
When I run the script, this is the output I get:
not sure if this is the right sub for my question but still I'm taking the shot.
I want to set up a batch script which runs through my entire folder and use mkvmerge to add a custom audio track to every mkv file inside this folder.
This is my script:
Code: Select all
@echo on
rem set preperations
setlocal DisableDelayedExpansion
for %%A in ("*720p.mkv") do (
set "name=%%A"
setlocal EnableDelayedExpansion
C:\System\MKVToolNix\mkvmerge.exe -o new_!name!.mkv -A "%%A" C:\System\MKVToolNix\src\audio.wav
)
Code: Select all
C:\MKVToolNix_Input\ToDo>(
set "name=Move name 1 - 720p.mkv"
setlocal EnableDelayedExpansion
C:\System\MKVToolNix\mkvmerge.exe -o new_!name!.mkv -A "Move name 1 - 720p.mkv" C:\System\MKVToolNix\src\audio.wav
)
mkvmerge v68.0.0 ('The Curtain') 64-bit
Fehler: Die Datei »name« konnte nicht zum Lesen geöffnet werden: open file error.