有没有人知道哪错了,我执行一次是没问题的,可是加入这个嵌套循环后就出错了,有没有大佬看一下- set filename=D:\reboot.txt
- set cycle=5
- set movetime=5
-
- cd . > %filename%
-
- for /l %i in (1,1,%cycle%) do (
- for /l %j in (1,1,%movetime%) do (
- adb wait-for-device
- adb shell input swipe 222 110 15 110
- echo swipe %time% count %%j >> %filename%
- TIMEOUT /T 120 /NOBREAK
-
- )
- adb wait-for-device
- echo reboot %time% count %%i >> %filename%
- adb reboot
- TIMEOUT /T 120 /NOBREAK
-
- )
- pause
复制代码
|