mediarenamer.exe r "C:\path\to\the\file.avi"
Hi ccMatrix - have you ever tried theRenamer? I've been using it for a while now for TVSeries and have yet to find a file it did not rename properly, especially since it can use the TVDB (among other sites) for lookup. The latest version now does movies as well. It can be automated and used from a batch file.
Not that I don't appreciate your work! But if you are not doing much development, this might be an alternative?