Board logo

标题: [文本处理] 帮忙把批处理修改成日分类 [打印本页]

作者: 838510233    时间: 2021-11-30 19:17     标题: 帮忙把批处理修改成日分类

  1. set "SrcDir=C:\SoftwareOK"
  2. cd /d "%SrcDir%"
  3. for /f "tokens=1-3 delims=" %%a in ('dir /a-d/b') do (
  4. set "write_date=%%~ta"
  5. set "write_date=!write_date:/=!"
  6. set "write_date=!write_date:~4,4!!write_date:~0,4!"
  7. if not exist !write_date! md "!write_date!"
  8. move /y "%%a" "!write_date!"
  9. )
复制代码

作者: Batcher    时间: 2021-12-1 09:44

回复 1# 838510233


    请举例说明你的具体需求




欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2