adb devices @echo please copy the device name of the up lines @SET /p devices=%devices% @SET dpath=records @mkdir %dpath% :one @SET var=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2% adb -s %devices% shell screenrecord /sdcard/%var%.mp4 adb -s %devices% pull /sdcard/%var%.mp4 %dpath%/ TIMEOUT /T 3 adb shell rm -rf screenrecord /sdcard/%var%.mp4 goto one pause
原文:https://www.cnblogs.com/wx2017/p/14838298.html