kmustwxw 当前离线
上等兵
@echo off&setlocal enabledelayedexpansion set var=0 for /f %%i in ('dir /b *.jpg') do ( set/a var+=1 f | xcopy %%i D:\文件夹\图片!var!.jpg ) passe复制代码
TOP
DAIC 当前离线
中将
@echo off setlocal enabledelayedexpansion set var=0 for /f "delims=" %%i in ('dir /b *.txt') do ( set /a var+=1 copy "%%i" "D:\文件夹\图片!var!.jpg" ) pause复制代码