encoding more than one filetype batch help!!

Microsoft Windows server 2008 standard -...
July 15, 2010 at 11:08:29
Specs: Windows 7
Hey,
so i dont know even how this script works it just does, and im looking to see if i can make it encode more than one filetype, example

for /f "tokens=* delims=" %%i in ('dir/s/b/a-d *.avi') do (
//encode stuff
)

but i want multi filetypes so *.avi,mkv,mp4,wmv,mpeg,mpg,mov,mp4,m2ts,mts,flv

can anyone help me pretty please?

Thanks!
-Ty


See More: encoding more than one filetype batch help!!

Report •

#1
July 15, 2010 at 12:25:18
You had mp4 listed twice; I removed one of them.
for /r %%i in (*.avi *.mkv *.wmv *.mpeg *.mpg *.mov *.mp4 *.m2ts *.mts *.flv) do (


Report •

#2
July 15, 2010 at 13:44:31
what about my settings for looking in subdirectorys, and thank you so much, will this work

for /r %%i in ('dir/s/b/a-d *.avi *.mkv *.wmv *.mpeg *.mpg *.mov *.mp4 *.m2ts *.mts *.flv') do (


Report •

#3
July 15, 2010 at 14:05:18
what about my settings for looking in subdirectorys
It does.

will this work
No.


Report •

Related Solutions

#4
July 15, 2010 at 17:38:33
"will this work "
for /r %%i in ('dir/s/b/a-d *.avi *.mkv *.wmv *.mpeg *.mpg *.mov *.mp4 *.m2ts *.mts *.flv') do (
"No."

actually, at least on xp, it does.


Report •

#5
July 15, 2010 at 17:55:12
actually, at least on xp, it does.
As long as you don't want *.flv (and don't mind "'dir/s/b/a-d"), sure. But I was talking more about the flow of his logic.

Report •

Ask Question