admin管理员组

文章数量:1558697

脚本
@echo off
rem 截图保存的位置
set “p=e://adb/”
adb wait-for-device
rem 截图保存手机位置
adb shell /system/bin/screencap -p /sdcard/screenshot.png
rem 设置当前的时间,用于截图的命名
set t=%DATE:0,4%-%DATE:5,2%-%DATE:8,2%-%TIME:0,2%%TIME:3,2%%TIME:6,2%
rem set “t=%t: =%”
adb pull /sdcard/screenshot.png %p%screenshot_%t%.png
echo success:%p%screenshot_%t%.png
adb shell rm -f /sdcard/screenshot.png
pause
1、根据电脑系统下载插件
https://developer.android.google/studio/releases/platform-tools

2、解压文件,将解压路径添加值环境变量


3、在指定文件创建一个文件夹存放图片

4、修改脚本中的文件路径

5、使用数据线连接电脑,选择文件传输功能,执行bat脚本

本文标签: 截图电脑ADB