Monday, April 23, 2012

Read a txt line by line in a batch file

Here is my problem. I have a txt file with 100 different video names (examples):



abc.mpg



def.mpg



ghi.mpg



...



xyz.mpg



I want to process those videos one by one using some commands and put the results into a folder with the same name (without the extension):



command1 abc.mpg



command2 abc.mpg



move results .\abc



My question is how can I perform the above iteration with a for loop within a batch file.





No comments:

Post a Comment