
起因
闲得无聊找壁纸,崩坏3官网上有一堆,不想手动一张张下,所以写了这么个玩意儿。 为什么不用Python呢。。。因为没装Python3
Code
@echo off
title BH3Download
cd %~dp0
set com1=https://static-event.benghuai.com/bh3_homepage/images/pic/picture/0
set file=jpg
set num=1
:forstart
set "comfull=%com1%%num%.%file%"
curl "%comfull%" --output %num%.%file%"
echo "%comfull%"
if %num%==39 goto endl
if %num%==36 set file=png
if %num%==9 set com1=https://static-event.benghuai.com/bh3_homepage/images/pic/picture/
set /a num+=1
goto forstart
:endl
pause>nul
壁纸包
壁纸包包括上文的批处理文件,如果官网更新,可以自行修改
发表回复