Victor_VG
Tracker Mod | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору @echo off setlocal if "%~1" =="" (goto mhlp) if "%~1" == "-h" (goto mhlp) if not "%~2" == "" (set dnl=%2) else (set dnl=c) if exist JPSoft (move /y JPSoft JPSoft.old > nul) if /i "%dnl%" == "W" (goto mwget) :mcurl for %%a in ( tcc-rt.exe tcc.exe tcmd.exe tcmdupdate.aiu tcc-update.aiu tcc-rt-update.aiu TakeCommand.epub TakeCommand.pdf ) do curl -Rs --create-dirs --output ./JPSoft/%%a https://jpsoft.com/downloads/v%1/%%a for %%a in ( 4autotray 4console 4utils ev onig32dll sysutils ) do curl -C - -RLs --create-dirs --output ./JPSoft/Plugins/%%a.zip ftp://vefatica.net/4plugins/%%a.zip for %%a in ( 4autotray64 4console64 4utils64 ev64 onig64dll sysutils64 ) do curl -C - -RLs --create-dirs --output ./JPSoft/Plugins/%%a.zip ftp://vefatica.net/4plugins/x64/%%a.zip for %%a in ( chill consearch htags htmldump iso8601 popinfo popupfix qcal safechars say ) do curl -C - -RLs --create-dirs --output ./JPSoft/Plugins/%%a.zip http://prospero.unm.edu/dl/%%a.zip for %%a in ( event everything fedutils9 ) do curl -C - -RLs --create-dirs --output ./JPSoft/Plugins/%%a.zip https://jpsoft.com/downloads/plugins/%%a.zip curl -C - -RLs --create-dirs --output ./JPSoft/sdk/sdk.zip https://jpsoft.com/downloads/sdk/sdk.zip goto mchk :mwget cd /d %windir% if exist wget.exe (set wg=wget & goto mnext) if exist wget64.exe (set wg=wget64 & goto mnext) else (goto mcurl) :mnext if exist curl-ca-bundle.crt (set prm=%wg%--ca-certificate=curl-ca-bundle.crt --no-hsts --ca-directory=./) else (set prm=%wg%--no-check-certificate --no-hsts) for %%a in ( tcc-rt.exe tcc.exe tcmd.exe tcmdupdate.aiu tcc-update.aiu tcc-rt-update.aiu TakeCommand.epub TakeCommand.pdf ) do %prm% -c -q -nH --keep-badhash -t5 -P %~dp0JPSoft https://jpsoft.com/downloads/v%1/%%a for %%a in ( 4autotray 4console 4utils ev onig32dll sysutils ) do %prm% -c -q -nH --keep-badhash -t5 -P %~dp0JPSoft/Plugins ftp://vefatica.net/4plugins/%%a.zip for %%a in ( 4autotray64 4console64 4utils64 ev64 onig64dll sysutils64 ) do %prm% -c -q -nH --keep-badhash -t5 -P %~dp0JPSoft/Plugins ftp://vefatica.net/4plugins/x64/%%a.zip for %%a in ( chill consearch htags htmldump iso8601 popinfo popupfix qcal safechars say ) do %prm% -c -q -nH --keep-badhash -t5 -P %~dp0JPSoft/Plugins http://prospero.unm.edu/dl/%%a.zip for %%a in ( event everything fedutils9 ) do %prm% -c -q -nH --keep-badhash -t5 -P %~dp0JPSoft/Plugins https://jpsoft.com/downloads/plugins/%%a.zip %prm% -c -q -nH --keep-badhash -t5 -P %~dp0JPSoft/SDK https://jpsoft.com/downloads/sdk/sdk.zip endlocal cd /d %~dp0 :mchk for %%a in ( tcc-rt tcc tcmd ) do if not exist JPSoft\%%a.exe echo %%a setup not downloaded >> JPSoft\download.log for %%a in ( tcmdupdate tcc-update tcc-rt-update ) do if not exist JPSoft\%%a.aiu echo %% update script not downloaded >> JPSoft\download.log for %%a in ( epub pdf ) do if not exist JPSoft\TakeCommand.%%a echo Take Command %%a manual not downloaded >> JPSoft\download.log for %%a in ( 4autotray 4autotray64 4console 4console64 4utils 4utils64 chill consearch ev ev64 event everything fedutils9 htags htmldump iso8601 onig32dll onig64dll popinfo popupfix qcal safechars say sysutils sysutils64 ) do if not exist JPSoft\Plugins\%%a.zip echo Plugin %%a not downloaded >> JPSoft\download.log if not exist JPSoft\SDK\sdk.zip echo Plugin SDK not download >> JPSoft\download.log if exist JPSoft\download.log (type JPSoft\download.log & pause) exit :mhlp echo. echo jpsoft-upd v2.1 script help: echo. echo SYNOPSIS: echo. echo jpsoft-upd PARAM1 PARAM2 echo. echo download v21 use cURL: jpsoft-upd 21 C echo download v21 use Wget: jpsoft-upd 21 w echo display help : jpsoft-upd -h echo display help : jpsoft-upd echo. echo Description: echo. echo Download latest JP Software TCC, TCMD, TCMD-RT, plugins and documentations. echo. echo History: echo. echo v2.1, 11.11.2017 19:32:02 +0300 - refactoring and some plug-ins added. echo. echo Command line switches: echo. echo PARAM1 is "Version" major, example 21 , or "-h" or run w/o parametes for help. echo PARAM2 is "C" for use cURL v7.56 or never, "W" - use Wget v1.19 or never. echo. pause exit /b | Всего записей: 33223 | Зарегистр. 31-07-2002 | Отправлено: 16:17 11-11-2017 | Исправлено: Victor_VG, 19:50 11-11-2017 |
|