小批量的可以这样:- @echo off
- setlocal enabledelayedexpansion
- for /f "delims=" %%i in ('dir /b /ad') do (
- set /a n+=1
- set "_!n!=%%i"
- )
- for /f "tokens=1* delims=:" %%j in ('dir /b /a-d *.jpg^|findstr /n .') do (
- if exist "!_%%j!\" move "%%k" "!_%%j!\"
- )
- pause
复制代码
|