568388585 当前离线
列兵
Batcher 当前在线
管理员
@echo off setlocal enabledelayedexpansion set "SrcFolder=J:\a" set "DstFolder=J:\b" set "FileNum=100" set "FileCount=0" for /f "tokens=1-3 delims=^|" %%i in ('dir /b /a-d /o-d "%SrcFolder%\*.jpg"') do ( set /a FileCount+=1 if !FileCount! leq !FileNum! ( move /y "%SrcFolder%\%%i" "%DstFolder%" ) )复制代码
TOP