|Test this, remove the REM command when you are happy that the script will do what you want.|
for /f "tokens=*" %%1 in ('dir /b *#*.*') do (
echo !oldname! being renamed !newname!
REM ren "!oldname!" "!newname!"
Please come back & tell us if your problem is resolved.