PDA

View Full Version : Win 2000 CMD


TMLewiss
07-12-2003, 11:31 PM
Ok I am trying to make a bat file that goes to the folder that you tell it to and does something along these lines--> It goes through the folder and then takes all the movies (lets just say that they are all mpg) and then creates an html file for them. I know how to do everything except how to get it to get the filenames of the movies. Yeah I can rename all the movies to like "Movie 1, Movie 2..." but I want it to do the original filenames. Thanks in advance for any help.

inkedmn
07-14-2003, 02:12 PM
this sounds like a job for python...

jamessan
07-14-2003, 02:42 PM
for %%i in (*.mpg) do ....where .... is whatever you want to do with each mpg. The little test I did to make sure that worked just had 'echo %%i' instead of '....'