echo -off
cls
ver
date
time
echo "  "

cd BIOS
echo Checking ROM file .....
AfuEfix64.efi X50V5000.103 /D
if not %lasterror% == 0 then
goto end
endif

:flash
Dis_EUP_x64.efi
AfuEfix64.efi X50V5000.103 /P /B /N
if not %lasterror% == 0 then
goto end
endif

fpt.efi -f X50V5000.103 -bios
if not %lasterror% == 0 then
goto end
endif

fpt.efi -f X50V5000.103 -me
if not %lasterror% == 0 then
goto end
endif

fpt.efi -greset

:end
echo "  "
echo "Update not sucessful."
echo "  "

cd ..