• 常用bat文件


    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

  • 相关阅读:
    mybatis <=或这个>=提示错误Tag name expecte问题解决
    Navicat 设置自增长初始值
    mysql 时间与字符串相互转换
    jquery 动态控制显隐
    mysql 查询常见时间段数据
    jquery 取得select选中的值
    java8 运算语法集
    springboot 单元测试
    idea 自动生成并跳转单元测试
    限制页面被pc端访问
  • 原文地址:https://www.cnblogs.com/Westfalen/p/6656681.html
Copyright © 2020-2023  润新知