Asus Zenfone 5 Lite ZC600KL

@echo off

set /a total=0

set “dataerase=0”

set “para=”

echo please make sure your device is under fastboot mode.

echo press ‘Ctrl + C’ can abort this scripts.

if [%1] == [1] (set dataerase=1)

if not [%2] == [] (set para=-s)

echo set dataerase = %dataerase% and para = %para%

@set fb=fastboot %para% %2

:: there’s no command “fastboot wait”,

:: but this can ensure that fastboot is available after the reboot.

%fb% wait >nul 2>&1

echo Start image update…

:: update aboot at first

%fb% flash aboot emmc_appsboot.mbn

if not %errorlevel% == 0 (echo update aboot failed. && goto Error)

fastboot reboot-bootloader

echo wscript.sleep 5000>sleep.vbs

start /wait sleep.vbs

del /f /s /q sleep.vbs

fastboot wait >nul 2>&1

:: flash image for T89189

call .sub_scriptsflashall.bat

if not %errorlevel% == 0 (goto Error)

echo Total update %total% images.

echo update Images done.

%fb% reboot

goto :END

:Error

echo Image Update ERROR !!!

goto :END

:END

set total=

set dataerase=

set para=

set fb=

More from my site