A while ago I write a little program to rename video files ripped off a DVD.

Try figuring out how it works. Here's a hint.

You can use any input that contains the individual new file names (or parts of them) in quotes among further text.
Download it here: VideoFileSorter.msi.zip