Rename all files in the directory to lowercase open command line in that direct and run the following command for /f "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f" "%f") replace all subfolder files to lowercase for /f "Tokens=*" %g in ('dir /b') do (for /f "Tokens=*" %f in ('dir %~fg /l /b /a-d') do (rename "%~fg\%f" "%f")) 1 Replace "SPACES" with "DASH" in the folder cmd /e:on /v:on /c "for %f in ("* *.jpg") do (set "n=%~nxf" & set "n=!n: =-!" & ren "%~ff" "!n!" )" replace this ".jpg" (extension) and change the character in the bracket you want to replace "n=!n: =(-)!"