Bat01————認識echo

要頻繁用到adb命令,重複性的,於是想到了bat腳本,因爲簡單,方便,不用我一遍一遍的輸入命令

bat腳本很簡單

@echo off

代表的是關閉所有命令的回顯

舉例說明

@echo off

@echo off
echo 第一條命令
echo 第二條命令
echo 第三條命令
echo 第四條命令
echo 第五條命令
echo 第六條命令
pause

結果:

echo off

echo off
echo test1
echo test2
echo test3
echo test4
echo test5
echo test6
pause

結果:

@echo on

@echo on
echo test1
echo test2
echo test3
echo test4
echo test5
echo test6
pause

 

區別就是命令行顯示的方式

我使用的腳本是:

@echo on
echo ****start****
adb shell uiautomator dump /sdcard/app.uix
adb pull /sdcard/app.uix C:\Users\GV-RD-01\Desktop\screen
adb shell screencap -p /sdcard/app.png
adb pull /sdcard/app.png C:\Users\GV-RD-01\Desktop\screen
pause

成功啦

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章