@echo off::修改当前目录下所有文件,倒数第3-5字符放首部加空格for /f "delims=" %%a in ('dir /b/a-d') do (set str=%%~nasetlocal enabledelayedexpansionset "pre=!str:~-5,3!"set "end=!str:~-2!"set "mid=!str:~0,-5!"ren "%%a" "!pre! !mid!!end!%%~xa"endlocal)pause