- Export the file list to a csv file: dir /b *.xml > list.csv.
- Open list.csv in Excel.
- Copy the contents of column A to column B.
- Find and replace in column B as necessary (for me, replace - with _).
- Insert a column before A.
- Fill all cells of the new column A with the word ren.
- Select all and paste to Notepad. Each line should now read ren oldfilename newfilename. There is whitespace in between, this is normal.
- Save Notepad file as rename.bat. You now have a batch file.
- Run the batch file: enter rename.bat on the command line.
(Yes, this is a big deal for me. Yeah, I'm not too knowledgeable about computery stuff. But I'm learning :)