1.sdk路径D:android-sdk-windowsplatform-tools 新建logcat.bat2.logcat.bat编辑对应的内容@ECHO OFFfor /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"SET timeStamp=%dt:~0,4%-%dt:~4,2%-%dt:~6,2%_%dt:~8,2%-%dt:~10,2%-%dt:~12,2%SET mutID=_mut@ECHO ONadb logcat -v time > ."%mutID%_%timeStamp%_logcat.log"pause3.运行logcat.bat
查看全文