mirror of
https://github.com/mon5termatt/medicat_installer
synced 2024-11-13 01:10:26 +00:00
Update cdn.bat
This commit is contained in:
parent
4efb9e12c3
commit
325273ee2c
@ -14,17 +14,17 @@ echo Testing Server 2 - medicat.itrio.xyz
|
||||
FOR /F %%I in ('curl -e https://installer.medicatusb.com --max-time 3 "https://mirrors.itrio.xyz/unpacked/MediCat.USB.v21.12.7z" -o server2.7z -s -w "%%{speed_download}"') do set server2=%%I
|
||||
set /a server2=%server2% / 1000000
|
||||
echo.%server2%mbps
|
||||
::echo Testing Server 3 -
|
||||
::FOR /F %%I in ('curl -e https://installer.medicatusb.com --max-time 3 "" -o server3.7z -s -w "%%{speed_download}"') do set server3=%%I
|
||||
::set /a server3=%server3% / 1000000
|
||||
::echo.%server3%mbps
|
||||
echo Testing Server 3 - files.dog
|
||||
FOR /F %%I in ('curl -e https://installer.medicatusb.com --max-time 3 "https://files.dog/OD%20Rips/MediCat/v21.12/MediCat.USB.v21.12.7z" -o server3.7z -s -w "%%{speed_download}"') do set server3=%%I
|
||||
set /a server3=%server3% / 1000000
|
||||
echo.%server3%mbps
|
||||
|
||||
|
||||
|
||||
timeout 1 >nul
|
||||
del server1.7z /q
|
||||
del server2.7z /q
|
||||
::del server3.7z /q
|
||||
del server3.7z /q
|
||||
|
||||
if %server1% geq %server2% (
|
||||
if %server1% geq %server3% (
|
||||
@ -36,11 +36,11 @@ if %server2% geq %server1% (
|
||||
set url="https://mirrors.itrio.xyz/unpacked/MediCat.USB.v21.12.7z" & goto download
|
||||
)
|
||||
)
|
||||
::if %server3% geq %server1% (
|
||||
:: if %server3% geq %server2% (
|
||||
:: set url="https://mirror.fangshdow.trade/medicat-usb/MediCat%%20USB%%20v21.12/MediCat.USB.v21.12.7z" & goto download
|
||||
:: )
|
||||
::)
|
||||
if %server3% geq %server1% (
|
||||
if %server3% geq %server2% (
|
||||
set url="https://mirror.fangshdow.trade/medicat-usb/MediCat%%20USB%%20v21.12/MediCat.USB.v21.12.7z" & goto download
|
||||
)
|
||||
)
|
||||
|
||||
:download
|
||||
echo.Downloading from fastest server.
|
||||
|
Loading…
Reference in New Issue
Block a user