echo -off
cls
ver
date
time
echo "  "

cd BIOS
echo Checking ROM file .....
AfuEfix64.efi XH97V000.104 /D

if not %lasterror% == 0 then
goto end
endif

:flash
Dis_EUP_x64.efi
AfuEfix64.efi XH97V000.104 /p /b /n /r /reboot

if not %lasterror% == 0 then
goto end
endif

fpt64.efi -greset

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

cd ..