I have folder structure like this
i want to mux mp4 to mkv and remove the mp4 file after that. i got a sample batch script but it require to place it inside the folder where the file is located.Code:C:\TV\1\file.mp4 C:\TV\2\file.mp4 C:\TV\3\file.mp4
i am not sure how can i add command by which batch script will read all the subfolder files. any help please?Code:FOR %%A IN (*.mp4) DO "C:\Program Files\MKVToolNix\mkvmerge.exe" -o "%%~nA.mkv" "%%~A"
+ Reply to Thread
Results 1 to 5 of 5
FOR /R %%A IN (*.mp4) DO "C:\Program Files\MKVToolNix\mkvmerge.exe" -o "%%~dpnA.mkv" "%%~dpnxA"
I would like to do the same but NOT remove the mp4 file?SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 7 Ultimate, QNAP NAS TS851
Neither of the above batch files deletes the source video. If you wanted to delete the source videos you would have add a second command:
FOR /R %%A IN (*.mp4) DO ( "G:\Program Files\MKVToolNix\mkvmerge.exe" -o "%%~dpnA.mkv" "%%~dpnxA" del "%%~dpnxA" )