cls
forever:
dialog 7
Read ECU Info
Read Flash
Load Flash
Write Flash
Verify
Change VIN
Exit
begin:
option 1 ecuinfo 2 backup 3 load 4 restore 5 verify 6 changevin 7 end
ecuinfo:
run vpwparameter
goto forever
backup:
if DEBUG == 0
echo Please hit detect first to enter DEBUG ON
goto continue
endif 
echo Read Flash
getram Flash
goto continue
load:
echo Load Flash
ldram 0
goto continue
restore:
if DEBUG == 0
echo Please hit detect first to enter DEBUG ON
goto continue
endif 
confirmdlg
if CONFIRM == 0
goto continue
endif
echo Write Flash
checkmdw 0
if MEMORY == FFFFFFFF
echo Your Flash does not seems to be right. This might brick the ECU
goto continue
endif
erase Flash
sprogram Flash
cmpram Flash
if CMPRAM == 0
echo Please power off/on the ECU and try again
endif
goto continue
verify:
cmpram Flash
continue:
goto begin
changevin:
run vpwvin
goto forever
end:
