Moderatorzy: frasun, Artur, Alf/red/
Alf/red/ napisał(a):Może Twoja sieć tego protokołu (rsync) nie przepuszcza?
rem ------ WYBIERZ ------
rem set WERSJA=index.html
set WERSJA=index-ni.html
@echo off
rem skrypt sciaga UMP-pcPL ze strony, i wgrywa na miejsce
rem script updates UMP-pcPL from www to current directory
rem ------ WYBIERZ ------
rem set WERSJA=index.html
set WERSJA=index-og.html
if not exist %WERSJA% GOTO pobierzmapy
copy %WERSJA% index.old > nul
wget -N -erobots=off -nH http://ump.waw.pl/update/%WERSJA%
fc %WERSJA% index.old > nul
rem nie dziaa w W98
rem if not %errorlevel%==0 goto pobierzmapy
if errorlevel 1 goto pobierzmapy
echo Na serwerze nie ma nowej wersji mapy
echo.
goto koniec
:pobierzmapy
wscript //nologo check-MS-run.vbs
rem if not %errorlevel%==10 goto koniec
if errorlevel 11 goto koniec
del %WERSJA%
echo Pobieram mapy!
echo.
wget -N -r -erobots=off -nH --cut-dirs=2 -nv http://ump.waw.pl/update/%WERSJA%
:koniec
if exist index.old del index.old > nul
pause
Alf/red/ napisał(a):(inne możliwości: index-to.html, index-og.html, index-mi.txt, index.html)
set WERSJA=index-og.html
set WERSJA=index-to.html
Użytkownicy przeglądający ten dział: Brak zalogowanych użytkowników i 2 gości