新建一个批处理文件
输入下面的内容
1 @echo off 2 rem set name=%date:~0,4%%date:~5,2%%date:~8,2%0%time:~1,1%%time:~3,2%%time:~6,2% 3 //设置截图文件名称 4 set screenShotName=0%time:~1,1%%time:~3,2%%time:~6,2% 5 //截图 6 adb shell /system/bin/screencap -p /data/local/tmp/%screenShotName%.png 7 //模拟等待 8 ping 127.0.0.1 -n 2 9 //下载截图 10 adb pull /data/local/tmp/%name%.png E:\down\%screenShotName%.png
时间: 2024-10-12 09:18:50