How can I turn this command into a batch command? There is 50 Videos I would like to do this to and they are all the same layout etc all the track numbers/names are the same and each subtitle file has the same name as the .Mkv file it wants to be added to.
If possible I would also like someone to tell me how to create a batch script for Mkvmerge so I don’t have to ask every time I need one 😀
“C:\Program Files (x86)\MKVtoolnix\mkvmerge.exe” -o “D:\\Folder\\New\\Video.mkv” “–default-track” “1:yes” “–forced-track” “1:no” “–display-dimensions” “1:720×540” “–language” “3:jpn” “–track-name” “3:Japanese (2.0)” “–default-track” “3:no” “–forced-track” “3:no” “-a” “3” “-d” “1” “-S” “-T” “–no-global-tags” “D:\\Folder\\Video.mkv” “–language” “0:eng” “–track-name” “0:English Improved” “–default-track” “0:yes” “–forced-track” “0:no” “-s” “0” “-D” “-A” “-T” “–no-global-tags” “–no-chapters” “D:\\Folder\\Subtitle.srt” “–track-order” “0:1,0:3,1:0”
Thanks
example:
for %%A in (D:\Folder*.mkv) do (
change to
for %A in (D:\Folder*.mkv) do (
and
D:\Folder\%%~nA
change to
D:\Folder\%~nA
If you are using it in a .bat file then 2 % is correct.
example:
for %%A in (D:\Folder*.mkv) do (
and
D:\Folder\%%~nA