i like the "for" command in windows. i'm guessing it was stolen from unix, but i don't care. it helps me a lot for when i need to do something on a set of files, but i don't want to write a proper script.
here's a quick example to illustrate its power. say i have sets of files like this:
vid01-2p.avi
vid02-2p.avi
...
vid74-2p.avi
aud01.mp3
aud02.mp3
...
aud74.mp3
and i want to mux them together to get clip01.divx, clip02.divx... clip74.divx, and then run a checker to verify them.
this can be easily accomplished with "for":
for /L %x in (01,1,74) do (
mux.exe -v vid%x-2p.avi -a aud%x.mp3 -o clip%x.divx
checkClip.exe -i clip%x.divx > clip%x.log
)
this will create 74 files using my aud* and vid* files as input, and then check them.
for more info, just type "help for" at the command prompt.
Comments
Post new comment