@echo off
:loop

set MyServer=192.168.1.212
%SystemRoot%\system32\ping.exe -n 10 %MyServer% | findstr /r /c:"[0-9] *ms"
if errorlevel 1 goto NoServer

echo %MyServer% is availabe.
@rem c:\bat\wget  -U "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"  --convert-links -r http://192.168.1.212/ -P c:\xampp\htdocs\kinco\temp\promag300
@rem c:\bat\wget --user-agent=Mozilla --content-disposition --convert-links --timestamping --quiet http://192.168.1.212/servlet/basic.html y c:\xampp\htdocs\kinco\temp\promag300.html
b:\bat\wget -U "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"  --convert-links --quiet http://192.168.1.212/servlet/basic.html -O b:\htdocs\temp\promag300.html
b:\bat\wget --quiet -O - http://localhost/szoglete40/crontab/promag300.php --user=joremeny --password=remenysegfoka >b:\htdocs\temp\promag300.log


%SystemRoot%\system32\ping.exe -n 10 %MyServer% 
:NoServer
echo %MyServer% is not availabe yet.

@goto loop