Page 1 of 1

convert multiple videos with a loop?

Posted: 22 Mar 2010 09:19
by baekalfen
i want to convert my WTV files to mpeg4.

my batch will maybe look a little like this:

Code: Select all

cd recorded tv
dir /b >videos.txt
cd ..

1:
todvrms.exe "F:/recorded tv/???.wtv" "F:/recorded tv/dvrms/???"
goto 1


how do i assign the ??? with one of the files from the .txt?

i'm new at this, so please add small comments after the commands in the solution.

Re: convert multiple videos with a loop?

Posted: 26 Mar 2010 09:32
by avery_larry
for /f "delims=" %%a in (videos.txt) do todvrms.exe "f:\recorded tv\%%a" "f:\recorded tv\dvrms\%%~na"