VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Currently im using this batch script to split a huge video file into shorter duration.

    md "D:\anime upload\output"
    for %%a in ("*.mkv") do "F:\mkvtoolnix\mkvmerge.exe" -o "D:\anime upload\output\%%a" --split duration:00:14:40 "%%a"


    I have a lot of videos in different folders.
    is it possible to edit the script such that the files in output folder will be in same folder names as source?
    Quote Quote  
  2. Try:
    Code:
    setlocal enabledelayedexpansion
    for /R . %%A in (*.mkv) do (
    	set B=%%A
    	"F:\mkvtoolnix\mkvmerge.exe" -o "D:\anime upload\output\!B:%CD%\=!" --split duration:00:14:40 "%%A"
    )
    Quote Quote  
  3. Thank you very much!!!! This is exactly what I wanted and it works!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!