2023-04-01 08:02:48 +00:00
|
|
|
@echo off
|
2023-04-01 23:38:13 +00:00
|
|
|
:check
|
|
|
|
cls
|
|
|
|
set size=0
|
|
|
|
set propersize=22994783619
|
|
|
|
call :filesize "MediCat.USB.v21.12.7z"
|
|
|
|
if "%size%" == "%propersize%" (goto done)
|
|
|
|
)
|
|
|
|
|
2023-05-08 23:45:10 +00:00
|
|
|
|
2023-04-01 23:38:13 +00:00
|
|
|
:download
|
|
|
|
echo.Downloading from Medicat server.
|
2023-05-08 06:05:47 +00:00
|
|
|
|
|
|
|
::Normally Use this file
|
2023-05-09 23:03:20 +00:00
|
|
|
::curl -# -L -o MediCat.USB.v21.12.7z -C - https://files.medicatusb.com/files/v21.12/MediCat.USB.v21.12.7z
|
|
|
|
|
2023-05-08 06:05:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-01 23:38:13 +00:00
|
|
|
|
|
|
|
:done
|
|
|
|
cls
|
|
|
|
echo.Completed Downloading, Checking File Size.
|
|
|
|
set size=0
|
|
|
|
call :filesize "MediCat.USB.v21.12.7z"
|
|
|
|
if "%size%" == "%propersize%" (goto exit)
|
|
|
|
echo.the file doesnt appear to be complete.
|
|
|
|
timeout 3 > nul
|
|
|
|
goto check
|
|
|
|
|
|
|
|
|
|
|
|
:exit
|
|
|
|
echo.File Appears to be downloaded successfully.
|
2023-04-01 08:02:48 +00:00
|
|
|
timeout 5 > nul
|
2023-04-01 23:38:13 +00:00
|
|
|
exit /b
|
|
|
|
|
|
|
|
|
|
|
|
:filesize
|
|
|
|
set size=%~z1
|
|
|
|
exit /b 0
|