Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
baekalfen
- Posts: 1
- Joined: 22 Mar 2010 08:23
#1
Post
by baekalfen » 22 Mar 2010 09:19
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.
-
avery_larry
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
#2
Post
by avery_larry » 26 Mar 2010 09:32
for /f "delims=" %%a in (videos.txt) do todvrms.exe "f:\recorded tv\%%a" "f:\recorded tv\dvrms\%%~na"