::@y00185015#20111222#
::修订内容:增加 以时间为 名称保存 文件
echo 当前时间是:%time% 即 %time:~0,2%点%time:~3,2%分%time:~6,2%秒%time:~9,2%厘秒
set str="%date:~0,4%%date:~5,2%%date:~8,2%_%time:~0,2%%time:~3,2%"
set Folder="Logs.%date:~0,4%%date:~5,2%%date:~8,2%_%time:~0,2%%time:~3,2%"
mkdir %Folder%
adb remount
adb shell dmesg > %Folder%/dmesg.%str%.txt
adb shell logcat -b radio -v time -d > %Folder%/logril.%str%.txt
adb shell logcat -b radio -d AT -v time > %Folder%/logAT.%str%.txt
adb shell logcat -v time -d > %Folder%/logcat.%str%.txt
adb pull /data/dontpanic/apanic_console %Folder%/apanic_console.%str%.txt
adb pull /data/dontpanic/apanic_threads %Folder%/apanic_threads.%str%.txt
rmdir /s /q Logs
::mkdir Logs
adb pull /data/logs %Folder%/log.%str%.txt
::adb pull /data/dontpanic %Folder%/dontpanic.%str%.txt
adb pull /data/dontpanic %Folder%/
adb shell bugreport > %Folder%/bugreport.%str%.txt
adb shell "rm /data/logs/*"
adb shell "rm /data/dontpanic/*"
pause
::修订内容:增加 以时间为 名称保存 文件
echo 当前时间是:%time% 即 %time:~0,2%点%time:~3,2%分%time:~6,2%秒%time:~9,2%厘秒
set str="%date:~0,4%%date:~5,2%%date:~8,2%_%time:~0,2%%time:~3,2%"
set Folder="Logs.%date:~0,4%%date:~5,2%%date:~8,2%_%time:~0,2%%time:~3,2%"
mkdir %Folder%
adb remount
adb shell dmesg > %Folder%/dmesg.%str%.txt
adb shell logcat -b radio -v time -d > %Folder%/logril.%str%.txt
adb shell logcat -b radio -d AT -v time > %Folder%/logAT.%str%.txt
adb shell logcat -v time -d > %Folder%/logcat.%str%.txt
adb pull /data/dontpanic/apanic_console %Folder%/apanic_console.%str%.txt
adb pull /data/dontpanic/apanic_threads %Folder%/apanic_threads.%str%.txt
rmdir /s /q Logs
::mkdir Logs
adb pull /data/logs %Folder%/log.%str%.txt
::adb pull /data/dontpanic %Folder%/dontpanic.%str%.txt
adb pull /data/dontpanic %Folder%/
adb shell bugreport > %Folder%/bugreport.%str%.txt
adb shell "rm /data/logs/*"
adb shell "rm /data/dontpanic/*"
pause