rmLog.bat
@echo off
pause >nul | echo 按任意键继续3pause >nul | echo 按任意键继续2pause >nul | echo 按任意键继续1adb 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 按任意键继续3pause >nul | echo 按任意键继续2pause >nul | echo 按任意键继续1echo 开始复制......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:\backup\%d%\_%t%"echo d | xcopy D:\2.1 "D:\backup\%d%\_%t%\2.1" /e /f /hpause >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 2\SublimeText.exe" c:/tmp/crash_%date:~0,4%_%date:~5,2%_%date:~8,2%.logpause
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:/tmpadb pull "/sdcard/%name%" c:/tmpadb shell rm "/sdcard/%name%"start "" "c:/tmp/%name%"pause
getCurrentActivityName.bat
@echo off
adb shell getprop ro.product.modeladb shell getprop ro.build.version.releaseadb shell getprop ro.build.version.sdkecho.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 /nhecho ========================================echo. pause