Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set mkvmerge="D:\Apps\MKVToolnix\mkvmerge.exe"
- for /F "delims=" %%M in ('dir /b *.mp4') do (
- IF EXIST %%M CALL :MP4MERGE %%M
- )
- GOTO END
- :MP4MERGE
- set source=%~nx1
- set target=%~n1.mkv
- %mkvmerge% -o "E:\%target%" --track-name 0:"" --compression 0:none --track-name 1:"" --compression 1:none --no-global-tags "%source%" --title ""
- timeout 1 >NUL
- :: CLEANUP
- IF EXIST "E:\%target%" (
- RM -f "%source%"
- )
- :END
Advertisement
Add Comment
Please, Sign In to add comment