.bat命令

fastboot erase system

fastboot flash system system.2knand.img

fastboot reboot

::fastboot reboot

 

观察各进程所占内存的脚本:

@echo off

set disp=Log文件被保存在D:\MemLog\MemLog.txt

set logpath=D:\MemLog\MemLog.txt

set MemLog=MemLog.txt

del %MemLog%

echo %disp%

echo %MemLog%

:loop

echo %date% %time%

echo ---------------------------------------------------- >> %logpath%

echo %date% %time% >> %logpath%

echo ---------------------------------------------------- >> %logpath%

adb shell procrank -u >> %logpath%

echo "wait 5s to next procrank"

ping -n 5 127.0.0.1>nul

goto loop

你可能感兴趣的:(.bat命令)