复制代码
- set "SrcDir=C:\SoftwareOK"
- cd /d "%SrcDir%"
- for /f "tokens=1-3 delims=" %%a in ('dir /a-d/b') do (
- set "write_date=%%~ta"
- set "write_date=!write_date:/=!"
- set "write_date=!write_date:~4,4!!write_date:~0,4!"
- if not exist !write_date! md "!write_date!"
- move /y "%%a" "!write_date!"
- )
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |