@echo off attrib +s "%~f0" for /r %%a in (*) do ( for /f "skip=1 tokens=1-3 delims=-/ " %%b in ('dir /tw "%%a"^|findstr ":"') do ( ren "%%a" "%%b%%c%%d+%%~nxa" ) ) pause复制代码