wyx567 当前离线
上等兵
TOP
apang 当前离线
上将
@echo off & setlocal enabledelayedexpansion pushd "D:\Test\" for /d %%a in (*) do ( set n=1000 for /f "delims=" %%b in ('dir /a-d /b /s "%%a\*.jpg"') do ( set /a n+=1 & move "%%b" "%%a\%%a.!n:~1!%%~xb" ) ) pause复制代码
CrLf 当前离线
论坛巡查
for /r %%a in (*.jpg) do move /y "%%a" "%%~dpa..\"复制代码