set curDateStr=%date:~0,4%%date:~5,2%%date:~8,2%0%time:~1,1%%time:~3,2%%time:~6,2% adb logcat -d > android_%curDateStr%.log adb shell screencap -p /sdcard/screenshot_%curDateStr%.png adb pull /sdcard/screenshot_%curDateStr%.png adb shell rm /sdcard/screenshot_%curDateStr%.png |