Windows script to run as a batch to replace character in list of file names

Solution 1:

Here you go, save the following as a .BAT file and execute:

@setlocal enabledelayedexpansion&&for /f %%a in ('dir /b *.csv') do @set fn=%%~na&&set fn=!fn:.=-!&&ren "%%a" "!fn!%%~xa"