批处理bat重复复制一个文件并重命名

2024-12-23 01:37:50
推荐回答(3个)
回答1:

for /l %%i in (1 1 100) do (
copy /y test.mp4 %%i.mp4)
del /a /q test.mp4
pause

回答2:

@for /l %%i in (1,1,100) do @copy test.mp4 %%i.mp4

回答3:

@echo off
color 3f
for /l %%i in (1,1,100) do copy /y test.mp4 %%i.mp4
del /S /Q /F test.mp4
pause