@echo off
set a=0
cd /d 目录
set "b=文件名称"
:kaishi
set/a a+=1
if not exist %a%.dat copy "%b%" 重命名文件名称%a%.png
goto kaishi
@echo off
set a=0
cd /d 目录
set "b=文件名称"
:kaishi
set/a a+=1
if not exist %a%.dat copy "%b%" 重命名文件名称%a%.png
goto kaishi