@echo off
set /a nTimes=3000
:Loop
echo reboot ...%nTimes%
set /a nTimes=%nTimes%-1
adb wait-for-device
ping -n 3 127.1>nul
adb reboot
adb wait-for-device
ping -n 15 127.1>nul
if /i %nTimes% geq 1 goto Loop
echo "1000 test end"
set /a nTimes=3000
:Loop
echo reboot ...%nTimes%
set /a nTimes=%nTimes%-1
adb wait-for-device
ping -n 3 127.1>nul
adb reboot
adb wait-for-device
ping -n 15 127.1>nul
if /i %nTimes% geq 1 goto Loop
echo "1000 test end"