复制代码
- @echo off &cd /d "c:\test" &setlocal enabledelayedexpansion
- for /f "delims=" %%F in (
- 'dir /b/a-d^|findstr /iv "\.202[4-9]\-[0-9][0-9]\-[0-9][0-9]\." '
- ) do (set "t=%%~tF" &ren "%%F" "%%~nF.!t:~,10!%%~xF") 2>nul
- pause&exit/b
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |