Log in

View Full Version : Basic Batch File


prnoct90
4th December 2011, 18:58
I made this basic batch file and it works fine, there is a only one small problem, it add mkv as well as dts to the end of the file, so i get file.mkv.dts as the output. Is there anyway to not have it add the ".mkv"? Thanks!

for %%I in (*.mkv) do (
eac3to.exe "%%I" "%%I.dts" -1536
)

sneaker_ger
4th December 2011, 19:21
for %%I in (*.mkv) do (
eac3to.exe "%%I" "%%~nI.dts" -1536
)


http://www.rgagnon.com/gp/gp-0008.html