rmLog.bat
@echo off
pause >nul | echo 按任意键继续3
pause >nul | echo 按任意键继续2
pause >nul | echo 按任意键继续1
adb shell rm /sdcard/Android/data/com.iotlife.action/files/logs/crash_%date:~0,4%_%date:~5,2%_%date:~8,2%.log
pause
backupCode.bat
@echo off
pause >nul | echo 按任意键继续3
pause >nul | echo 按任意键继续2
pause >nul | echo 按任意键继续1
echo 开始复制......
set d=%date:~0,4%%date:~5,2%%date:~8,2%
set t=%time:~0,2%%time:~3,2%%time:~6,2%
set t=%t: =0%
mkdir "D:ackup\%d%\_%t%"
echo d | xcopy D:2.1 "D:ackup\%d%\_%t%2.1" /e /f /h
pause >nul | echo 复制已完成
showLog.bat
adb pull /sdcard/Android/data/com.iotlife.action/files/logs/crash_%date:~0,4%_%date:~5,2%_%date:~8,2%.log c:/tmp/
"D:Program Files (x86)Sublime Text 2SublimeText.exe" c:/tmp/crash_%date:~0,4%_%date:~5,2%_%date:~8,2%.log
pause
captureScreen.bat
set name=screen_%date:~0,4%%date:~5,2%%date:~8,2%_%time:~0,2%%time:~3,2%%time:~6,2%.png
set name=%name: =0%
adb shell screencap -p "/sdcard/%name%"
mkdir c:/tmp
adb pull "/sdcard/%name%" c:/tmp
adb shell rm "/sdcard/%name%"
start "" "c:/tmp/%name%"
pause
getCurrentActivityName.bat
@echo off
adb shell getprop ro.product.model
adb shell getprop ro.build.version.release
adb shell getprop ro.build.version.sdk
echo.
adb shell dumpsys | findstr "mFocusedActivity"
pause
@echo off
echo.
echo ========================================
echo 占用5037端口的进程
for /f "tokens=5 delims= " %%i in ('netstat -ano ^| findstr 5037') do if %%i NEQ 0 tasklist /fi "pid eq %%i" /fo table /nh
echo ========================================
echo.
pause