My solutions was pretty low tech. I'm no programmer. All my movies have an nfo associated with them that were named exactly the same as the movie so this is what I did:
At a dos prompt in my movie directory: dir /b *.nfo > movie.bat
Then I edited movie.bat and did a find and replace
.nfo with nothing
replaced regular expression
^ (beginning of line) with
mkdir "
replaced regular expression
$ (end of line with)
"
Everything in movie.bat ended up looking like this
mkdir "300 (2006)"
mkdir "Batman The Dark Knight (2008)"
mkdir "Corpse Bride (2005)"
etc...
Then I ran the batch file and it created all the directories.
To move them, I went back to the batch file and turned it into a giant list that looked like this with more find and replace:
"300 (2006)"
"Batman The Dark Knight (2008)"
"Corpse Bride (2005)"
Imported it into excel in two different columns and turned it into a new text file (again, called movie.bat) that looked like this
"300 (2006)" "300 (2006)"
"Batman The Dark Knight (2008)" "Batman The Dark Knight (2008)"
"Corpse Bride (2005)" "Corpse Bride (2005)"
I edited that list to replace regular expression
^ with
move
replaced
" " with
*" "
So now it looked like this
move "300 (2006)*" "300 (2006)"
And then ran the new movie.bat. All done.