|
Answer» Howdy all
I have folder after folder of TV seasons, all files have horribly ugly names. I have used a file renmaing program to rename them in a tidy uniform format, eg "The Simpsons (S05E03) - ".
Now what I usually do is open Wikipedia, go to the shows List Of Episodes page, copy each episode name and paste it to the end of each file name. Very time consuming.
I would like run a batch file that copies each episode name I guess into a new line in a text file, then use the text file to extract the names then append to each filename. I suppose I would have to MANUALLY open the web page and scroll so the information started a specific number of lines from the top of the browser (the same each time), the get string at the coordinates containing each episode name? To start..
UPDATE:
I have sorted the first part, getting a text file of episode names. I just copied the entire table from Wikipedia, PASTED into Word, then created a macro that formatted the table until only the epsiode names remained, then saved them to a new text file on the DESKTOP, then closed Word. So now I just have to write a batch file that appends each video file name with each line for the text file.. Is this possible?Some examples of what all your data looks like and how we are suppose to match them to append the new file name would really help.Yes, as Squashman says.
If your files sort in the same order as the names in the file then it's a simple task.ok thanks for the replies.
Here are my list files: The Walking Dead (S02E01) - .avi The Walking Dead (S02E02) - .avi The Walking Dead (S02E03) - .avi The Walking Dead (S02E04) - .avi The Walking Dead (S02E05) - .avi The Walking Dead (S02E06) - .avi The Walking Dead (S02E07) - .avi The Walking Dead (S02E08) - .avi The Walking Dead (S02E09) - .avi The Walking Dead (S02E10) - .avi The Walking Dead (S02E11) - .mp4 The Walking Dead (S02E12) - .mp4
I then want to append each file name with its CORRESPONDING episode name. These names are listed in a text file, each on a new line, in the same ascending order as the episodes: What Lies Ahead Bloodletting Save the Last One Cherokee Rose Chupacabra Secrets Pretty Much Dead Already Nebraska Triggerfinger 18 Miles Out Judge, Jury, Executioner Better Angels Beside the Dying Fire Can you guarantee that the Episode names are in the correct order? If not we can't guarantee the accuracy of the Episode Name appending.
What do you want the output file name to look like?Yes. I just copied them from Wikipedia using the method I described.
I want them to look like what I showed above, eg.
The Walking Dead (S02E01) - What Lies Ahead.avi
I'll be doing this many times in the future, so I WANTED to know what the correct syntax was for the batch file. This question was multi-posted to this site. http://www.dostips.com/forum/viewtopic.php?f=3&t=5561It's most likely these files and copying are outside the Copyright laws so i'll suspend this discussion for now... Feel free to PM me if this is not the case.
patio.
|