aza 当前离线
列兵
TOP
qixiaobin0715 当前离线
大校
@echo off for /d %%a in (*) do ( md "%%a\主图" md "%%a\详情" move "%%a\*主图*.*" "%%a\主图\">nul 2>nul move "%%a\*详情*.*" "%%a\详情\">nul 2>nul ) pause复制代码
评分人数
77七 当前在线
中校
@echo off cd /d "%~dp0" for /f "tokens=*" %%a in ('dir /b /s /a-d *主图*') do ( cd %%~dpa & md 主图 2>nul & move %%a .\主图\ ) cd /d "%~dp0" for /f "tokens=*" %%a in ('dir /b /s /a-d *详情*') do ( cd %%~dpa & md 详情 2>nul & move %%a .\详情\ )复制代码