1.使用内容创建adb_capture.txt
REM ====================
REM set varible _MyTime for filename
FOR /F "tokens=1-4 delims=:." %%a IN ("%time%") DO (
SET _MyTime=%%a%%b%%c%%d
)
REM adb root
REM adb remount
adb shell screencap -p /sdcard/Download/s1.png
adb pull /sdcard/Download/s1.png
adb shell rm /sdcard/Download/s1.png
REM every file have different name by time
rename s1.png %_MyTime%.png
REM===============
2.将文件名更改为adb_capture.bat,然后单击“运行”