@echo off
set suffix=mod
set prefix=mod
set source=%cd%
set /p
source=源文件路径[%source%]:
set destination=D:\Output
set /p
destination=目标路径[D:\Output]
xcopy "%source%\*.*" "%destination%" /A /Y
for
/f "delims=" %%a in (‘dir %destination% /b/od *.%suffix%‘) do (
set/a
n+=1
call ren "%destination%\%%a" "%suffix%%%n"
)
pause
时间: 2024-10-11 23:48:46