- @echo on
- Setlocal enabledelayedexpansion
- adb devices|findstr "\<device\>" >id.txt
- timeout 1 >nul
-
- for /f "tokens=1 delims= " %%a in (id.txt) do (
- adb -s %%a shell pm list packages -3>3.txt&&timeout 1 >nul
- for /f "tokens=2 delims=:" %%b in (3.txt) do adb -s %%a uninstall %%b
- )
- del id.txt
- del 3.txt
- pause
复制代码 一个很奇怪的问题,上面的批处理我观察命令代码是正确的。但是处理结果是Failure....我手动复制命令处理是: Success. 大神出来指点一下这个怪问题 |