Here is a nice little utility that I have used for years to automate the changing of filenames. It is free and the source is available....
Separate names with a comma.