1.已知 adb screencap命令可以生成截图至系统,现利用此命令,通过批处理来自动生成截图
2.命令:
adb shell screencap -p /sdcard/screenshot.png adb pull /sdcard/screenshot.png D:\Test\screenshot\screenshot.png set d=%date:~0,10% set filename=%date:~0,10%_%time:~0,2%-%time:~3,2%-%time:~6,2%.png set filename=%filename:/=-% echo %filename% ren D:\Test\screenshot\screenshot.png %filename% pause