sorry it doesnt work maybe ive done some thing wrong have a look:
[highlight]@echo off
set /a "wada"=="1"
:1337
set /a "wada"=="%wada%" + 1
pause
if %wada%==10 goto mesa
pause
ping 1.1.1.1 -l 1 -w 500 -n 1 >NUl
goto 1337
:mesa
msg * yay!
ping 1.1.1.1 -l 1 -w 5000 -n 1 >NUl[/highlight]