by truth » Sun Mar 09, 2014 7:23 am
Another solution:
FOR /f "delims=, tokens=1,2" %F in (renames.txt) do @REN "%F".* "%G".*
It assumes ALL of the following:
Renames.txt is in .csv format & no commas exist within filenames
All files are in the same directory, & all filetypes should be renamed
Renames.txt specifies EntireFilenames (minus .ext)
If anything isnt true, modify as needed or post back with details.
The BRC equivalent is below, in case you need to incorporate more options:
FOR /f "delims=, tokens=1,2" %F in (renames.txt) do @brc32 /pattern:"%F".* /fixedname:"%G" /execute