level 5
李义邪
楼主
@璐村惂鐢ㄦ埛_000076K馃惥 on
set t=1
echo 请输入格式,del为删除
set /p gs=
if "%gs%"=="del" (goto del)
set /p p1=photo one
set /p p2=photo two
set /p long=times
if exist %p1% (if exist %p2% (
for /l %%i in (1,1,%long%) do (
if %t% EQU 1 (copy %p1% %%i.%gs%
set t=2
) else (copy %p2% %%i.%gs%
set t=1)
)
pause
exit) else (echo unfind photo two
pause)
) else (echo unfind photo one
pause)
exit
:del
if exist %t%.* (del %t%.*
set /a t=%t%+1
goto del)
exit
2019年08月03日 10点08分
1
set t=1
echo 请输入格式,del为删除
set /p gs=
if "%gs%"=="del" (goto del)
set /p p1=photo one
set /p p2=photo two
set /p long=times
if exist %p1% (if exist %p2% (
for /l %%i in (1,1,%long%) do (
if %t% EQU 1 (copy %p1% %%i.%gs%
set t=2
) else (copy %p2% %%i.%gs%
set t=1)
)
pause
exit) else (echo unfind photo two
pause)
) else (echo unfind photo one
pause)
exit
:del
if exist %t%.* (del %t%.*
set /a t=%t%+1
goto del)
exit

