@echo offSetlocal Enabledelayedexpansionset "str=要删除的字符"for /f "delims=" %%i in ('dir /b .') do (set "var=%%i" & ren "%%i" "!var:%str%=!")