Android shell cmd批處理

testApkUpgrade.bat:shell

 

@echo off
:start
::start爲自定義標籤.net

echo step1: adb uninstall com.flx.zw
pause
adb uninstall com.flx.zw
get

echo step2: adb install C:\Users\Administrator\Desktop\ApkRelase\ZS_V1.0.6.6.apk
pause
adb install C:\Users\Administrator\Desktop\ApkRelase\ZS_V1.0.6.6.apk
it

echo step3: db shell am start com.flx.zw/com.flx.activity.SplishActivity    
pause
adb shell am start com.flx.zw/com.flx.activity.SplishActivity    
class

echo 是否繼續?Y/N
set /p ans=
if /i %ans% == Y goto start 
if /i %ans% == N exit
::/i 表示不區分大小寫
test

相關文章
相關標籤/搜索